I want query that should Return Columns which is not have auto_increment.
SHOW COLUMNS FROM test - This Query Return the following datas
Field Type Null Key Default Extra
id int(11) NO PRI NULL auto_increment
content text NO NULL
I want Query that Should return columns which is not auto_increment
Ex:
SHOW COLUMNS FROM test WHERE `Extra` != 'auto_increment'
Field Type Null Key Default Extra
content text NO NULL
You can query the
INFORMATION_SCHEMA.COLUMNS: