SQLite2MySQL 还是得用工具,而且必须纯福利的才行(po jie ban)。网友推荐这神器,ESF Database
Migration Toolkit Professional v7.3.
【mysql】 【sqlite】 【JDBC】 【database】 点击查看原文>
Dec
04
2014
Dec
04
2014
Q13,消费者订单数量查询
Q13语句查询获得消费者的订单数量,包括过去和现在都没有订单记录的消费者。
Q13语句的特点是:带有分组、排序、聚集、子查询、左外连接操作并存的查询操作。
Q13的查询语句如下:
select
c_count, count(*) as custdist //聚集操作,统计每个组的个数
from //子查询
(select
c_custkey,
count(o_orderkey)
from
customer left outer join orders on //子查询中包括左外连接操作
c_custkey = o_custkey
and o_comment not like ‘%[WORD1]%[WORD2]%’ //LIKE操作
//WORD1 为以下四个可能值中任意一个:special、pending、unusual、express
//WORD2 为以下四个可能值中任意一个:packages、requests、accounts、deposits
group by //子查询中的分组操作
…
[获取更多]
Dec
03
2014
Dec
03
2014
Dec
03
2014
Dec
03
2014
Dec
03
2014
Dec
03
2014
Dec
03
2014
Dec
03
2014