我想[更新]從交易表TRANSACTION_ID到CMAS表,但我失去了一些東西......不知道從哪裏引用CMAS表,所以它不會出錯#1054 - Unknown column 'cmas.property_id' in 'where clause'
MySQL的桌到桌SQL
INSERT INTO `cmas` (`transaction_id`)
SELECT `transaction_id`
FROM `transactions` WHERE transactions.property_id = cmas.property_id // this bit is wrong!
這樣做!謝謝。 – Robert 2012-01-11 01:45:46