MySQL Forums
Forum List  »  Sybase

if statement
Posted by: juan Perez
Date: September 26, 2007 12:23PM

Hi everyone !!!

I need help con this...
I have in sybase this sentence

if (exists(select column1 from tabla1 where column1=value1))
begin
update tabla2 set column2=value2 where column3=value3
update tabla3 set column4=value4 where column5=value5
end

How I can do it in mysql?

Thanks...



Edited 1 time(s). Last edit at 09/27/2007 05:25AM by juan Perez.

Options: ReplyQuote


Subject
Views
Written By
Posted
if statement
16762
September 26, 2007 12:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.