I'm trying to get my feet wet with 'if' and 'when' uses in mysql. it would be very useful for update operations, but I can't get it right.
If I read the documentation correctly, it should be possible to say something like
UPDATE X
if WORD like 'a%' SET COMMENT = 'a' elseif WORD like 'b%' SET COMMENT = 'b' END IF
But this gives me an error message. What am I doing wrong?
MM
Martin Mueller
Professor emeritus of English and Classics Northwestern University
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql
Dec 09
wagnerbianchi.com Re: update and control flow
Dec 09, 2014; 12:50
wagnerbianchi.com
Re: update and control flow
Dec 09
Michael Dykman Re: update and control flow
Dec 09, 2014; 10:41
Michael Dykman
Re: update and control flow
Dec 09
shawn l.green Re: update and control flow
Dec 09, 2014; 10:54
shawn l.green
Re: update and control flow
Dec 09
hsv Re: update and control flow
Dec 09, 2014; 13:00
hsv
Re: update and control flow
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!