SQL语句知识积累
1、sqlServer查询时不区分大小写,加上 collate chinese_prc_ci_as 语句
where USERID = 'xxxx' collate chinese_prc_ci_as
2、SQL 语句排序
order by列名,如:order by seqNo
多列排序,order by A,B (效果:先排A,再排B)
3、将表中一列数据移到另一列
update [表名] set [另外一列]=[前一列](注意:另外一列是指你的目标列,前一列是源数据列)