Skip to content

ParseException when MERGE is used in a statement #1862

Discussion options

You must be logged in to vote

Greetings!

I have added support for WITH ... and the Output Clause.
You can test your statement online here.

WITH wmachine AS (
        SELECT DISTINCT
            projcode
            , plantcode
            , buildingcode
            , floorcode
            , room
        FROM tab_machinelocation
        WHERE Trim( Room ) <> ''
            AND Trim( Room ) <> '-' )
MERGE INTO tab_roomlocation AS troom
    USING wmachine
        ON ( troom.projcode = wmachine.projcode
                AND troom.plantcode = wmachine.plantcode
                AND troom.buildingcode = wmachine.buildingcode
                AND troom.floorcode = wmachine.floorcode
                AND troom.room = wmachine.room

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@manticore-projects
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@badapinguino
Comment options

Answer selected by badapinguino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants