sql - How can I select the primary key columns from a table? -
i need select columns primary key or column not null. how can that?
and want columns, not values.
select column_name information_schema.columns table_name = '<table_name>' , is_nullable = 'no'
Comments
Post a Comment