May 22, 2008 at 5:13 am
Hi,
I wanted to know what is the syntax for using case statements in an SQL update query. We are querying an Oracle Table from SQL Server.
I can use a normal update statement but am unable to do an update with a case statement.
May 27, 2008 at 12:06 pm
Sql Server syntax for updating using a case statement:
update table_1
set Datum2=(case when datum1='1' then 'One'
when datum1='2' then 'two'
when datum1='3' then 'three'
else 'four' end)
May 28, 2008 at 10:38 am
It is always worth to look in Oracle docs CASE Expressions
Gints Plivna
Gints Plivna
http://www.gplivna.eu
July 3, 2008 at 2:11 pm
Hi
Check out the below link
Thanks -- Vj
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply