标签:lock http sum 问题 模板 width 现在 HERE targe
SQL语句例如:
select ar.name 区域名,a.areaid 区域号,sum(a.money) 年水费合计数 from t_account a, t_area ar where ar.id=a.areaid group by a.areaid;
如果直接在Oracle中这样写,就会直接报以上显示的错误
正确写法:
select (select ar.name from t_area ar where ar.id=a.areaid )as 区域名,a.areaid 区域号,sum(a.money) 年水费合计数 from t_account a where a.year=‘2012‘ group by a.areaid;
例如:错误的用法
select ar.name 区域名,a.areaid 区域号,sum(a.money) 年水费合计数 from t_account a, t_area ar where ar.id=a.areaid
文章分享完毕,希望我的分享对大家有所帮助。更多学习技巧也可参阅:网站源码、模板、教程
标签:lock http sum 问题 模板 width 现在 HERE targe
原文地址:https://www.cnblogs.com/meilideni/p/12984568.html