当前位置: 技术问答>java相关
sql问题,急。
来源: 互联网 发布时间:2015-02-02
本文导语: 错在哪? sqlQuery6="select a.UserId,concat(f2.name," --- ",f1.name) from authority a left join funcdefine f1 on a.FuncId=f1.Id left join functype f2 on f1.TypeId=f2.Id where UserId='"+bb+"'"; dbbean.executeQuery (sqlQuery6); | 什麼...
错在哪?
sqlQuery6="select a.UserId,concat(f2.name," --- ",f1.name) from authority a left join funcdefine f1 on a.FuncId=f1.Id left join functype f2 on f1.TypeId=f2.Id where UserId='"+bb+"'";
dbbean.executeQuery (sqlQuery6);
sqlQuery6="select a.UserId,concat(f2.name," --- ",f1.name) from authority a left join funcdefine f1 on a.FuncId=f1.Id left join functype f2 on f1.TypeId=f2.Id where UserId='"+bb+"'";
dbbean.executeQuery (sqlQuery6);
|
什麼數據庫?
SQL Server中沒有concat函數.
Oracle中沒有left join.
SQL Server中沒有concat函數.
Oracle中沒有left join.
|
????????????/
|
建议检查一下有没有丢失空格什么的吧