regex - mysql stored procedure regexp -


I try to check my authentication with a regexp but there is always an error

  BEGIN declared closelyn varchar (255); If POST_FARMS is zero, set the closolin = 1; Otherwise if POST_FARMS REGEXP '^ [1- 9]' then set the closolin = 2; ELSE set closolar = 3; end if; Select clogolin; END    

Please study this link thoroughly:

13.6.5.2 If the syntax - If search is a statement then the list [ ELSEIF search_condition then statement_list] ... a [ELSE statement_list] / END if

And then please compare the above syntax with your code:

ELSE if is a POST_FARMS REGEXP ^ ^ [1 - 9] 'THEN

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -