0
我用下面的查询,以检查是否有与ID
我想插入一行:MYSQL UPDATE只有当值也存在于其他表
INSERT INTO data_advertenties_prijsindicatie (ID_advertentie,
prijs_indicatie,
eenheid)
SELECT ID_advertentie, :prijs_indicatie, :eenheid
FROM data_advertenties
WHERE ID_advertentie = :ID_advertentie AND
unieke_hash_plaatsen = :hash_plaatsen
如何更新以同样的方式?我只是想更新表data_advertenties_prijsindicatie
如果“ID_advertentie
”与“unieke_hash_plaatsen
”在表中存在data_advertenties
在表格之间是否有加入关键字,我猜它是'ID_advertentie'? – 2014-11-22 08:41:34