Access报错“语法错误 操作符丢失” - .NET技术 / C#
SQL code:
select A.commandKey,A.enabled,A.commandFile,A.targetControl,A.rightId,A.type,[B].[value] as commandType,A.state,[C].[value] as commandState,A.parent,A.commandText,A.commandTipText,A.icon,A.description
from t_commands as A
inner join t_parameters as B on [A].[type]=[B].[code]
inner join t_parameters as C on [A].[state]=[C].[code]
where B.id=3 and C.id=4
如上SQL,执行的时候就提示“语法错误(操作符丢失)在‘[A].[type]=[B].[code]
inner join t_parameters as C on [A].[state]=[C].[code] ’中”的提示,然后我发现如果把后面的join语句去掉不连接的话就能正常查询出数据,是不是Access不支持多个连接查询的?
select * from (select * from table1 t1 left join table2 t2 on t1.id=t2.id) t left join table3
t3 on t.id=t3.id
只有用LEFT JOIN+RIGHT JOIN
select A.commandKey,A.enabled,A.commandFile,A.targetControl,A.rightId,A.type,.[value] as commandType,A.state,[C].[value] as commandState,A.parent,A.commandText,A.commandTipText,A.icon,A.description
from (t_commands as A
inner join t_parameters as B on [A].[type]=[B].[code] )
inner join t_parameters as C on [A].[state]=[C].[code]
where B.id=3 and C.id=4
[b]加上()
学习中~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~顶起!!!!!!!!!!!!!!!
高手都帮你回答了
我就告诉
相关问答:
其实这个问题可以找老师回答,这不放假了吗,问问各位高手。
绝对有 ,ASP、net里有好多的逻辑判断等都需要winform基础
C#语言
Ado.net C/S结构
Asp.net B/S结构
俩都是微软出的,都能用C#进行开发 ......
我有一个类似的xml的 string,想通过遍历怎么个xml 输出我想要的element的值
xml 为:
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
求一本C#设计模式的书 ,我感觉我的代码运用接口,委托,属性的地方很少,肯定是我的设计模式太差了 ,有没有这方面,从国外翻译过来的,比较好的设计模式的书,推荐一下吧,非常感谢.
高人们说 代码重构的书好些,那我要改看 ......
想用flash来做c#皮肤界面来着,从来没弄过这东西。问题蛮多的。。。
1 flash做登陆界面 ,要将flash中的用户名和密码的值传给c#判断 是否登陆成功。成功则打开主界面,将登陆界面隐藏,
2 主界面也是以一个falsh ......