| От | Nico |
|---|---|
| Тема | making a rule and know when it is violated |
| Дата | |
| Msg-id | cvcvn4$bm0$1@news.hub.org обсуждение |
| Ответы |
Re: making a rule and know when it is violated
Re: making a rule and know when it is violated |
| Список | pgsql-jdbc |
Hello,
I want to make a rule in phpPgAdmin(PostgreSQL 7.3.8-RH ).
Then I want to intercept any violation on that rule in java.
Here is the table creation code:
CREATE TABLE "tblUser" (
"UserID" serial NOT NULL,
"UserName" character varying(50) NOT NULL,
"UserPass" character varying(50) NOT NULL,
"UserRoleID" integer DEFAULT 3 NOT NULL
);
Now it's imperative that the field UserRoleID has maximum one record that
contains the integer 1. Possible other values are 2 and 3. They are allowed
to exist in more than one record.
After that I need to know in java how to know when a violation of this rule
occurs.
Anyone any ideas?
Kind regards,
Nico.
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера