2017-03-31 93 views
-1
UPDATE customer_service.batch_status.cust_nm 
SET batch_status.cust_nm 
SELECT customer_service.batch_detail.cust_nm 
FROM customer_service.batch_detail 
LEFT JOIN customer_service.batch_status 
    ON customer_service.batch_detail.cust_nm = customer_service.batch_status.cust_nm; 
+0

而且,你有什么问题吗? – jarlh

+0

尝试从BATCH_DETAIL更新BATCH_STATUS.cust_nm。 cust_nm。 –

+0

它会弹出一个错误消息,语法错误,期望类似于batch_status和..之间的名称或Unicode分隔标识符。 –

回答

0

您的语法关闭。

相反:

UPDATE customer_service.batch_status.cust_nm 
FROM customer_service.batch_detail csbd 
SET cust_nm = csbd.cust_nm 
WHERE csbd.cust_nm = customer_service.batch_status.cust_nm;