Update SQL in Oracle conversion from SQL Server -
I am trying to create an update statement in Oracle, here it is the version in SQL Server:
evDATE ev SET (ev.station_type = t.st_type, ev.adt = t.adt) source EVA from databat te on ev.counterID = t .counterID
two table The source table contains the counterID primary key data is the TTL table was the counterID foreign key I am tring the data from the TBL to get into the souce table.
I appreciate that someone helps in creating an oracle version of the update. Thanks, Greener
You want to use this technique:
UPDATE (selection ev.station_type, t.st_type, ev.adt ev_adt, t.adt t_adt to source eva add data on CTB on ev.counterID = t.counterID) SET station_type = st_type, ev_adt = t_adt;
This subkey generates your results, on which you want you to use the SET section to update the column.
Comments
Post a Comment