Re: Compare the resulta of a count sql into bash

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Compare the resulta of a count sql into bash
Дата
Msg-id AANLkTi=SQ+BTiOCT64w0zw-RV18RM4JBKjWwfc3tyCvr@mail.gmail.com
обсуждение исходный текст
Ответ на Compare the resulta of a count sql into bash  (manuel antonio ochoa <manuel8aalfaro@gmail.com>)
Список pgsql-sql
On Wed, Jan 26, 2011 at 10:07 AM, manuel antonio ochoa
<manuel8aalfaro@gmail.com> wrote:
>
> Hello,
> I have the next :
>
> COUNTONE=`/var/lib/pgsql/bin/./psql -U 'Thor'   -d princlocal -p 5432 -h
> 192.170.1.82  -c "select count(*) from monterrey.${NOMBRETB}"`
> COUNTTWO=`/var/lib/pgsql/bin/./psql -U 'Thor'   -dprinclocal -p 5432 -h
> 192.170.1.82  -c "select count(*) from monterrey.$nombre where recibo
> between '$FI' and '$FF'"
>
> I want to compare the result countone with countwo  how does it works  ?

echo $((COUNTONE-COUNTTWO));


В списке pgsql-sql по дате отправления:

Предыдущее
От: Josh Kupershmidt
Дата:
Сообщение: Re: Compare the resulta of a count sql into bash
Следующее
От: "Santosh Bhujbal (sabhujba)"
Дата:
Сообщение: Queyring for columns which are exist in table.