| От | Achilleas Mantzios |
|---|---|
| Тема | Re: How to restrict |
| Дата | |
| Msg-id | 11341ee7-23e6-adfb-b14f-218eeffa8102@matrix.gatewaynet.com обсуждение |
| Ответ на | How to restrict ("Campbell, Lance" <lance@illinois.edu>) |
| Список | pgsql-admin |
Easy with a CHECK CONSTRAINT, like :PostgreSQL 10.x
What is the best way to restrict the values on a text field to make sure they only contain particular values: Example: The field “type” can only contain the values of “X”, “Y” and “Z”. Would a trigger be the best strategy? Or is there a special SQL type I should use in this particular case?
Thanks,
Software Architect
217.333.0382
Under the Illinois Freedom of Information Act any written communication to or from university employees regarding university business is a public record and may be subject to public disclosure.
-- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера
