从多个 select 插入 MS Access 2013 C# 错误
Insert from multiple select MS Access 2013 C# Error
我在查询中遇到错误我试过这个:
INSERT INTO Manuacturer_Item (item_id, manufacturer_id)
SELECT i.id,
m.id
FROM Item AS i
CROSS JOIN Manufacturer AS m
WHERE i.iname LIKE 'PC' AND m.mname LIKE'zaz'
我错过了什么?
在 Access SQL 中可能是:
INSERT INTO Manuacturer_Item
(item_id, manufacturer_id)
SELECT
i.id, m.id
FROM
[Item] AS i,
Manufacturer AS m
WHERE
i.iname like 'PC' AND m.mname like 'zaz'
我在查询中遇到错误我试过这个:
INSERT INTO Manuacturer_Item (item_id, manufacturer_id)
SELECT i.id,
m.id
FROM Item AS i
CROSS JOIN Manufacturer AS m
WHERE i.iname LIKE 'PC' AND m.mname LIKE'zaz'
我错过了什么?
在 Access SQL 中可能是:
INSERT INTO Manuacturer_Item
(item_id, manufacturer_id)
SELECT
i.id, m.id
FROM
[Item] AS i,
Manufacturer AS m
WHERE
i.iname like 'PC' AND m.mname like 'zaz'