MySQL Forums
Forum List  »  Stored Procedures

instr (identifier) is not valid input at this position" when Creating Procedure
Posted by: jeffrey alexander
Date: January 19, 2015 10:20AM

Been moving my work from one server over to another and having a bit of an issue

The following statement works fine in a procedure on my old server as well as when I run it as a query

update table
set symbol = left(symbol,instr(symbol," XY")-1)
where
instr(symbol," XY")>0

However, when I try to create a procedure with it in the new mysql server, I get the following error:

"instr (identifier) is not valid input at this position"

Pointing at the Instr and it won't let me continue

Any help on why this could be happening would be much appreciated

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
instr (identifier) is not valid input at this position" when Creating Procedure
10719
January 19, 2015 10:20AM


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.