從一個查詢是否可以做到?如何從其他表中插入多個選定的行值到新表
要從一個表中插入多個選定的行信息到其它的表 像:
Customers (register_no,CustomerName, City, Country)
Suppliers(register_no,SupplierName, City, Country)
INSERT INTO Customers (register_no,CustomerName, City, Country) SELECT register_no SupplierName, City, Country FROM Suppliers where register_no=10;
但在一個時間是有可能選擇register_no = 1,register_no = 3, register_no = 10; in one查詢
太謝謝你了@ B.Desai它的工作原理!!!!!! –