sqlserver简单应用

1、模糊查询表名称:

Select * From sysobjects Where name like '%legalize%'

2、查询表的字段信息

select * from information_schema.columns where table_name='tab_sLegalize'

 3、查询text的长度:

select LEN(cast(fld_Introduction as varchar )),fld_Introduction  from tab_sLegalize

 

posted @ 2014-01-15 10:27  prison  阅读(163)  评论(0编辑  收藏  举报