我试图通过创建与它的连接然后在服务器资源管理器中运行查询来查看我的 SQL 语句(MS Access)是否在 Visual Studio 中完成了它应该做的事情。
我想知道这两个查询之间是否有任何区别:
SELECT duckbill_.id, duckbill_.pack_size, duckbill_.description, duckbill_.vendor_id, duckbill_.department, duckbill_.subdepartment, duckbill_.unit_cost, duckbill_.unit_list, duckbill_.open_qty, duckbill_.UPC_code,
duckbill_.UPC_pack_size, duckbill_.crv_id, duckbill__vendors.vendor_item
FROM duckbill_, duckbill__vendors
WHERE (duckbill_.vendor_id = duckbill__vendors.vendor_id)
和:
SELECT duckbill_.id, duckbill_.pack_size, duckbill_.description, duckbill_.vendor_id, duckbill_.department, duckbill_.subdepartment, duckbill_.unit_cost, duckbill_.unit_list, duckbill_.open_qty, duckbill_.UPC_code,
duckbill_.UPC_pack_size, duckbill_.crv_id, duckbill__vendors.vendor_item
FROM (duckbill_ LEFT OUTER JOIN
duckbill__vendors ON duckbill_.vendor_id = duckbill__vendors.vendor_id)
...但它甚至不会让我执行查询。我可以连接到数据库,但显然不能连接到各个表。我收到此错误:
*SQL Execution Error
<My SQL statement>
Error Message: Record(s) cannot be read; no read permission on 'duckbill_'.*
我该如何解决?