lundi 20 avril 2015

MySQL `if` statement cannot be used freely outside a routine?

As described here by mysql.com, it seems that if statement used in procedure only - while in SQL Server, we can use if freely without a stored or a function.

Is that correct?

p.s. I make a simple SQL script for MySQL that try the if and get the error.

enter image description here

Aucun commentaire:

Enregistrer un commentaire