MySQL Forums
Forum List  »  InnoDB

Re: Can insert update a table based on match of one column value?
Posted by: nobody nobody
Date: February 07, 2019 04:26AM

Peter Brawley Wrote:
-------------------------------------------------------
> > I wish I could have a single query
>
> ?! Why?

Because my table and SQL are so basic and simple. I saw people doing very complicated things in one single query for joining many different tables, why cannot the MySql supports basic and simple query?

> > does mysql support if exists? I thought it
> should.
>
> Flow-control constructs like if...end if,
> do...while etc are supported only in stored
> routines.

Yeah, that is an option, the stored procedure is so powerful, what's the catch? Why many people not using the stored procedure surely the performance should be better then the sql query right?

Options: ReplyQuote




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.