select * from sysobjects where name like 'xx'
查询是否有 xx 表

select top 10 * from 表名 order by newid()

取出10条随机信息

 

dbcc checkident('ibs_sys_system',reseed,0)
检测自增列,重新设置自增ID
中间如果有遗漏,新插入行从遗漏开始

 

Select CONVERT(varchar(100), GETDATE(), 23): 2006-05-16

日期格式化

posted on 2011-10-31 09:55  花祭果凛  阅读(104)  评论(0)    收藏  举报