How to write such a stored function in MySQL?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-01-28T05:40:18Z Indexed on 2010/04/06 21:53 UTC
Read the original article Hit count: 128

Filed under:
|
|

The function essentially contains 2 statements:

statement1; and statement2;

If statement1 fetches some records,just return them as result;If it doesn't fetch any result,return the result of statement2.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about stored-functions