0

Can anyone tell me what is wrong with this Query ?

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

This code sample works for me on my database:

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 に答える