0
我有一類用戶的任意不等階的定義:ID,名稱,客戶ID 和一流的客戶與定義:ID,姓名,地址不正確的語法錯誤消息
我想下面的查詢,但具有我真的錯誤消息,關鍵字'用戶'附近的語法錯誤。
sql有什麼問題?
我試圖寫SQL
"select user.ID, user.Name, Customer.Name from User LEFT JOIN CUSTOMER on User.CustomerID = Customer.ID" using relationsExtension as
return Connection.db.FetchOneToMany<User, Customer>(user =>user.CustomerID,
"select * from user left join customer on customer.ID= user.CustomerID order by user.name asc");
我在SQL Management Studio中跑我遇到了麻煩的查詢與並發現了一個類似的錯誤.. – JDandChips 2015-10-18 19:11:51