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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -