[SQL] Question on MERGE in postgresql
[SQL] Question on MERGE in postgresql
От:
Kaleeswaran Velu <kaleeswaran.velu@gmail.com>
Дата:
Greeting all,I am using postgresql 9.4. When I try to use "Merge" command, seems not working.Below is the SQL statement I used. Even after I removed the business logic part for debugging purpose, it dose not work.MERGE INTO util.comment CUSING util.comment_orig BON C.jl_id_per_book = B.jl_id_per_bookWHEN MATCHED DO NOTHING;ERROR: syntax error at or near "MERGE"LINE 2: MERGE INTO util.comment C^********** Error **********ERROR: syntax error at or near "MERGE"SQL state: 42601Character: 8Any help is appreciated!Thanks and RegardsKalees.
Re: [SQL] Question on MERGE in postgresql
От:
"David G. Johnston" <david.g.johnston@gmail.com>
Дата:
Greeting all,I am using postgresql 9.4. When I try to use "Merge" command, seems not working.There is no MERGE command in PostgreSQLBeginning with 9.5.x we do have: INSERT ... ON CONFLICT which is similarDavid J.