11974 days on xHamster
47838M profile views
85470K subscribers
3231 comments left

Updating multiple columns sql server

WORKEXTENSION; But I was getting following error, by the Im on 10g R2 SQL Error: ORA-00904: "NEW"."WORKEXTENSION": invalid identifier 00904. I don't think i can use the merge statement here since there are more than 1 condition that has to be met for the target table to be updated. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Hii Alll Is it possible to update multiple column based on case statement??employee Table _________________ emp ID First Name Last Name Address 1 N N N 2 N N N 3 N N N Value Table ---------------------- emp ID New VAlue ID 1 'FN' 10 1 'LN' 20 2 'AA' 10 2 'BB' 30 3 'AA1' 10 3 'BB1' 20 3 'cc1' 30 updated employee Table output result should be _________________ emp ID First Name Last Name Address 1 FN LN N 2 AA N BB 3 AA1 BB1 CC1 UPDATE employee Table SET firstname = CASE When(employee Table.first Name='N' and ID=10) THEN Value Table.SQL Update Statement | Tech-Mirror " data-medium-file="https://i0com/

regards & thanks pjp June 29, 2005 - am UTC select as many old columns as you want and as many new columns as you want??? But when i did the same with the syntax given i got this error ora-01779 cannot modify a column which maps to a non key preserved value. I tried doing the same through this update ( select old. In some databases, such as Postgre SQL, when a FROM clause is present, what essentially happens is that the target table is joined to the tables mentioned in the fromlist, and each output row of the join represents an update operation for the target table.When using FROM, one should ensure that the join produces at most one output row for each row to be modified.resize=300,212 300w, https://i0com/ w=740 740w" sizes="(max-width: 380px) 100vw, 380px" data-recalc-dims="1" So, if we do not specify the WHERE clause, then all rows get changed its values. You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions.


Please or register to post comments
If spammers comment on your content, only you can see and manage such comments Delete all

Updating multiple columns sql server introduction

Updating multiple columns sql server

Recent posts

27-Sep-2018 10:46
27-Sep-2018 20:24
28-Sep-2018 00:02