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))
update tabla2 set column2=value2 where column3=value3
update tabla3 set column4=value4 where column5=value5

How I can do it in mysql?


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

Options: ReplyQuote

Written By
if statement
September 26, 2007 12:23PM

Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.