Postgresql – Retornando o nome dos campos de uma tabela que sejam not null

$sql_colnotnull = "SELECT c.column_name FROM information_schema.columns c WHERE c.column_name <> 'id' and c.is_nullable = 'NO' and table_name = '$tablename'";

Leave a Reply

Your email address will not be published. Required fields are marked *