摘要: 1. 一条记录count两个表记录数selecta.a,b.bfrom(selectcount(*)asa,'1'astypefromdfswriter_point)ajoin(selectcount(*)asb,'1'astypefromdfswriter_done)bona.type=b.type2. mysql竖表转换横表sample:CREATETABLE`grade`(`NO`INT(10)NULL,`subject`VARCHAR(50)NULL,`grade`INT(10)NULL)1.先group by no (得到no唯一的数据)2.再从以上数 阅读全文
posted @ 2012-05-24 16:36 kkk3044147 阅读(1240) 评论(0) 推荐(0) 编辑