sql - inner join query in update statement giving error -
sql - inner join query in update statement giving error -
i have update query:
update secugconductorinfo inner bring together tblsecugconductor on secugconductorinfo.conductorguid = tblsecugconductor.globalid set secugconductorinfo.conductorcount = '0' upper(tblsecugconductor.file_name) '%q1222_s%' , secugconductorinfo.conductorsize = 'unknown' , secugconductorinfo.insulation = 'unknown' , secugconductorinfo.material = 'unknown' , secugconductorinfo.conductorcount = '1'
i want update conductorcount=0
rows of secugconductorinfo based on bring together tblsecugconductor. i'm getting:
error report: sql error: ora-00971: missing set keyword 00971. 00000 - "missing set keyword"
how should alter query perform update?
update secugconductorinfo set secugconductorinfo.conductorcount = '0' secugconductorinfo.conductorsize = 'unknown' , secugconductorinfo.insulation = 'unknown' , secugconductorinfo.material = 'unknown' , secugconductorinfo.conductorcount = '1' , exists (select 1 tblsecugconductor secugconductorinfo.conductorguid = tblsecugconductor.globalid , upper(tblsecugconductor.file_name) '%q1222_s%')
you should utilize exists statement create join. corrected code above.
sql oracle sql-update
Comments
Post a Comment