sqlserver database queries

- all database tables
select * from sysobjects where type = ' u';

--指定表的所有列
select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='T_EMPLOYEE')

 

Guess you like

Origin www.cnblogs.com/1906859953Lucas/p/11199158.html