View Single Post

   
  #5 (permalink)  
Old 02-27-2008, 07:05 AM
rAinDeEr
 
Posts: n/a
Default Re: Simple Insert using Case statement

Hi Liu Liu ,

I need the syntax of the

SELECT * ,
CASE
when not exists (SELECT * from test where emp_num=3232)
then insert into test values (3232,'Raindeer')
END
FROM test";

** Or any other statment which will do the same

** that is the requirement
** Thanks all

Reply With Quote