1
我有一個臨時表(products_temp)和一些數據,而我有另一個表(產品)需要插入數據。我有一些常量,我需要手動設置新的記錄,如vendor_id = 1等...MySQL - 從另一個表中插入數據與常量合併
是否有可能在一個請求中執行臨時表數據和常量插入?
temp_products:
product_name | product_desc | category_name | mf_name ...
產品(CATEGORY_NAME,mf_name是不是):
product_id | product_name | product_desc | vendor_id | distributor_id ...
常數:
vendor_id=1, distributor_id=2
呵呵不錯,謝謝:-) – inf3rno 2011-02-27 07:30:29
天才!沒有想到這一點 – juliomalegria 2013-04-29 22:04:22