MS Access-查询表达式中缺少运算符

时间:2019-03-22 21:24:08

标签: sql .net ms-access

我正在开发针对Access数据库运行的.Net平台应用程序。查询失败,并显示错误:

  

“查询表达式中的语法错误(缺少运算符)   'Repairs.CustomerId = Customer.CustomerId内部加入设备打开   Repairs.DeviceId = Device.DeviceId内部加入RepairType   Repairs.RepairTypeId = RepairType.RepairTypeId'。“

我的查询是:

SELECT Customer.CustomerName, Device.Make, Device.Model, Device.Range, RepairType.RepairType, Repairs.DiscountPercent, RepairPrice.Price / 100 * (100-Repairs.DiscountPercent) As CustomerPrice 
From Repairs
Inner Join Customer On Repairs.CustomerId = Customer.CustomerId
Inner Join Device On Repairs.DeviceId = Device.DeviceId
Inner Join RepairType On Repairs.RepairTypeId = RepairType.RepairTypeId

我尝试将每个字段名称包装在方括号中,但结果相同

0 个答案:

没有答案