SqlServer:select c.name from sys.objects o join sys.columns c on o.object_id=c.object_id where o.name='表名';
Oracle: select column_name from user_tab_columns where table_name='tablename';