Re: How to query by column names

Поиск
Список
Период
Сортировка
От Richard Ray
Тема Re: How to query by column names
Дата
Msg-id Pine.LNX.4.64.0701221914400.8787@rray.drdc.mstc.ms.gov
обсуждение исходный текст
Ответ на Re: How to query by column names  (Jeff Frost <jeff@frostconsultingllc.com>)
Ответы Re: How to query by column names  (Jeff Frost <jeff@frostconsultingllc.com>)
Список pgsql-sql
On Mon, 22 Jan 2007, Jeff Frost wrote:

> So why are you avoiding "SELECT * FROM t1;" ?
>
I was affeared that if I brought my total ignorance to light I would be 
band from the list but here goes.
I work in UNIX/Linux environments.
It's my habit to record my scripts.
A simple example:

#!/bin/bash
CMD="psql -d test \"select * from t1\""
echo $CMD >> my_log
eval $CMD |
while read x; do  do_something_with_x
done

In this example * expands to all files in the current working directory.
I was attempting to get around this by enumerating the table attributes.


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

Предыдущее
От: Jeff Frost
Дата:
Сообщение: Re: How to query by column names
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: How to query by column names