2、xists(Select*FromsyscolumnsWhereID=s.IDandnamelike'%user%')查看所有表名:select name from sysobjects where type='U'查询表的所有字段名:SelectnamefromsyscolumnsWhereID=OBJECT_ID('表名')select*frominformation_schema.tablesselect*frominformation_schema.viewsselect*fr
3、ominformation_schema.columns查看所有表名:select name from MSysObjects where type=1 and flags=0MSysObjects是系统对象,默认情况是隐藏的。通过工具、选项、视图、显示、系统对象可以使之显示出来。 1.按姓氏笔画排序:Select*FromTableNameOrderByCustomerNameCollateChinese_PRC_Stroke_ci_as2.分页SQL语句select*fr