| От | Tim Landscheidt |
|---|---|
| Тема | Re: Query and the number of row result |
| Дата | |
| Msg-id | m38wgz7wb8.fsf@passepartout.tim-landscheidt.de обсуждение исходный текст |
| Ответ на | Re: Query and the number of row result ("Naoko Reeves" <naoko@lawlogix.com>) |
| Ответы |
Re: Query and the number of row result
|
| Список | pgsql-general |
bilal ghayyad <bilmar_gh@yahoo.com> wrote: > I am talking in case I am writing a script for a function, > and I need to know the number of the returned rows of the > query, then I will do IF statement based on that number, > how? > [...] Presuming that you are talking about a function written in PL/pgSQL, you will have to count them yourself or issue a second query "SELECT COUNT(*) FROM [...]". For the special case that you want to find out whether no row at all was found, you can look at "IF (NOT) FOUND". Tim
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера