摘要:
1.按姓氏笔画排序: Select * From TableName Order By CustomerName Collate Chinese_PRC_Stroke_ci_as 2.分页SQL语句 select * from(select (row_number() OVER (ORDER BY tab.ID Desc)) as rownum,tab.* from 表名 As tab) As t... 阅读全文
摘要:
1. 说明:复制表(只复制结构,源表名:a,新表名:b) SQL: select * into b from a where 1<>1; 2. 说明:拷贝表(拷贝数据,源表名:a,目标表名:b) SQL: insert into b(a, b, c) select d, e, f from b; 3. 说明:显示文章、提交人和最后回复时间 SQL: select a.title, ... 阅读全文