inner join on 怎么用啊 我写的怎么老不对啊
string StrSQL1 = "Select [Main].Shift,[Main].Page" + "from Sub inner join [Main] "+"on Main.Photoname = Sub.Photoname";提示 这样错误
语法错误 (操作符丢失) 在查询表达式 '[Main].Pagefrom Sub inner join [Main] on Main.Photoname = Sub.Photoname' 中。 --------------------编程问答-------------------- "Select [Main].Shift,[Main].Page from Sub inner join [Main] on Main.Photoname = Sub.Photoname";
--------------------编程问答-------------------- string StrSQL1 = "Select [Main].Shift,[Main].Page" + " from Sub inner join [Main] "+"on Main.Photoname = Sub.Photoname";
--------------------编程问答-------------------- string StrSQL1 = "Select [Main].Shift,[Main].Page" + "from Sub inner join [Main] "+"on Main.Photoname = Sub.Photoname";
----------------
估计LZ的错误是因为+的时候没有注意空格.
string StrSQL1 = "Select [Main].Shift,[Main].Page " + " from Sub inner join [Main] "+" on Main.Photoname = Sub.Photoname";
--------------------编程问答-------------------- [Main].Page //这里少个空格 from Sub inner join [Main] on Main.Photoname = Sub.Photoname' --------------------编程问答-------------------- 谢谢 大家了 就是空格问题 --------------------编程问答-------------------- 学习
补充:.NET技术 , C#