1、 查询列表,按照In的排序进行排序

select *, (select count(0) from [picture] where album_id=[album].id) as piccount From [Album] Where id in (5,6,8,1,3,4) order by charindex(',' + ltrim(rtrim(str(id))) + ',',',5,6,8,1,3,4,')
2、查询不重复结果,按照另外一个字段进行排序

select distinct A,B,max(C)
From Table
Group By A, B
Order By Max(c)
(通常情况在,A,B为用户ID和用户名,但是要按照C:添加时间来进行排序,这时候就要使用这个方法了)
1 在access数据库中
UPDATE ywx_subject SET iscurrent =iif(iscurrent,0,1);
这个语句是将数据库中的iscurrent逻辑字段取反 true改为false,false改为true
2 在sql server中 bit类型的字段取反
UPDATE ywx_subject SET iscurrent =iscurrent^1;
网络综合部署
部署LNMP架构
编译安装Nginx网站服务及优化
Apache网页优化
在windows上安装jupyter,配置单机版pyspark
剑指offer54-字符流中第一个不重复的字符
在centos001上安装jupyter,配置单机版pyspark
剑指offer53-表示数值的字符串
剑指offer50-数组中重复的数字