select username as 用户名,password as 密码 from users
例如:
select zd AS bm FROM tn where id=5
rs("bm")
SELECT LastName AS a, FirstName AS b FROM tn
rs("a") 能取到 lastname字段值
rs(b) 能取到 firstname字段值
SELECT 字段1 as bt ,字段2 as lr from 表名 order by id desc
rs("bt") 能取到 字段1的值
rs("lr") 能取到 字段2的值
查看哪项售后服务的获奖数最高。
SELECT * FROM (
SELECT s.sname,COUNT(*) as cnt FROM db.salse s LEFT JOIN db.client c ON s.salesno = c.salesno GROUP BY s.salesno
) as b ORDER BY cnt desc
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)