0

谁能告诉我这个查询有什么问题?

UPDATE
    violetta.navi__stop
SET
    violetta.navi__stop.endHour = VB.endHour
FROM
    violetta.navi__stop AS V
INNER JOIN
    violetta_back.navi__stop AS VB
ON V.code = VB.code

此代码示例适用于我的数据库:

SELECT
V.code, V.endHour
FROM
    violetta.navi__stop AS V
UNIQUE
    violetta_back.navi__stop AS VB
ON V.code = VB.code
4

1 回答 1

4

试试这个:

UPDATE
    violetta.navi__stop v
INNER JOIN
    violetta_back.navi__stop AS VB
ON V.code = VB.code
SET
    v.endHour = VB.endHour
于 2012-10-30T14:01:33.367 回答