Search Postgresql Archives

How to write a constraint which need to check other table?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



create table a(
         name varchar(32);
);

create talbe b(
          name1 varchar(32);
          name2 varchar(32);
);


How to write a constraint to check name1, name2 in the table a without change table defination?


ALTER TABLE b ADD CHECK(  ??? );



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux