
SQL
三岁
努力改变未来!
展开
-
删除无限级树形属于同一个分类下的所有记录
StudyFileType 表结构如下StudyFileTypeID intStudyFileTypeName nvarchar(50)ParentStudFileTypeID intsql 语句 create table #temp_table(ID int,levelnumber int)declare @leveln原创 2013-01-25 16:38:19 · 412 阅读 · 0 评论 -
order by newid() 随机查询
SQL Server:Select TOP N * From TABLE Order By NewID() view plaincopy to clipboardprint?Select TOP N * From TABLE Order By NewID() Select TOP N * From TABLE Order By NewID()NewID()函数将创建一个 uni转载 2013-04-15 11:32:25 · 714 阅读 · 0 评论