Re: Searching for all records but integer field is causing

Поиск
Список
Период
Сортировка
От Jason Earl
Тема Re: Searching for all records but integer field is causing
Дата
Msg-id 87sn6oe3cr.fsf@npa01zz001.simplot.com
обсуждение исходный текст
Ответ на Searching for all records but integer field is causing problems  ("Brian Johnson" <bjohnson@jecinc.on.ca>)
Список pgsql-novice
I think that what you want is:

SELECT * FROM phpgw_categories WHERE cat_appname = 'notes';

Jason

"Brian Johnson" <bjohnson@jecinc.on.ca> writes:

> How do I do a select query for all records?
>
> SELECT * FROM phpgw_categories WHERE cat_name = ? AND cat_owner = ? AND
> cat_appname = 'notes'
>
> cat_name = '*' works but cat_owner = '*' gives me an atoi error.
>
> I was hoping to reuse the code segment of SQL that gets called repeatedly
> for slightly different purposes but I can't get this to work
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

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

Предыдущее
От: "Brian Johnson"
Дата:
Сообщение: Searching for all records but integer field is causing problems
Следующее
От: Masakazu Ichimura
Дата:
Сообщение: Return value of function