INSERT INTO Customers (CustomerName, Country)
SELECT SupplierName, Country FROM Suppliers;
客户表还有其他列,除了那些"客户名称"和#34;国家"
这是我简单的SQL查询。
请帮我用KORMA SQL编写。
答案 0 :(得分:0)
你可以和sql几乎一样:
; assuming that you already define entities, customer, suppliers
(insert customers
(values (select suppliers
(fields :suppliername :country))))