哪个 sql 语句用于从数据库中提取数据

如题所述

用sql语句,从数据库提取结果属于查询,使用select语句。select语句属于DQL(Data Query Language)。最基本的就是:select [列名1,列名2……] from [表名] where [条件]。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-03-13
dt是指同一天么?select a.id ,b.id , count(1)from table a left join table b on CONVERT(varchar(10), a.time, 112)=CONVERT(varchar(10), b.time, 112) and a.status = b.status and a.id < b.idwhere b.id is not nullgroup by a.id,b.idorder by a.id上百亿条?
相似回答