Re: kind of RULE on SELECT depending on existence of a WHERE condition
В списке pgsql-sql по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: kind of RULE on SELECT depending on existence of a WHERE condition |
| Дата | |
| Msg-id | 4B8B983B.4080205@archonet.com обсуждение исходный текст |
| Ответ на | kind of RULE on SELECT depending on existence of a WHERE condition (rawi <only4com@web.de>) |
| Ответы |
Re: kind of RULE on SELECT depending on existence of a WHERE
condition
|
| Список | pgsql-sql |
On 01/03/10 10:07, rawi wrote: > But - for the case, that an application-programmer or even I (tired, middle > in the night) forget to program the insertion of the needed limiting WHERE > condition - it would be great to have some sort of rule ON SELECT, so a > SELECT without WHERE on the flags would return NOTHING. > > Is there a way to achieve this? Not quite the way you suggest. You could build a series of views with the WHERE conditions built in to them, and grant permissions on those though. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера