我想[更新]从交易表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