Search Postgresql Archives

Re: Get additional constraint information

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

 



 

 

From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of Tobias Fielitz
Sent: Monday, August 03, 2015 9:56 PM
To: pgsql-general@xxxxxxxxxxxxxx
Subject: [GENERAL] Get additional constraint information

 

select * from information_schema.table_constraints where

table_name=‘install_crash’;

 

Results here: http://imgur.com/YymSvBS

 

How can I get more information about these constraints, especially on which columns the not null constraints are?

 

Thanks


Tobias Fielitz

CTO StreetHawk

+61404267511

tobias.fielitz (skype)

 

--

 

select column_name, is_nullable from information_schema.columns where table_name = 'install_crash';

 

Regards,

Igor Neyman

 


[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