开发者

SQL Error 1630: Function SUBSTRING does not exist.. huh?

Right. So I've created a stored procedure in a MySQL DB which happens to use SUBSTRING.

Running the procedure via a query gives开发者_如何学Python me:

SQL Error 1630: Function mydatabase.SUBSTRING does not exist

Beg your pardon?


Is there a space after the method call to Substring before the first parenthesis?

It appears on Line 40:

 IF i > 1 AND j > 1 AND (s1_char = SUBSTRING (s2, j - 1, 1))

i.e. Ensure

select substring(CustomerName, 1, 4) AS CustName from MyTable;

instead of:

select substring (CustomerName, 1, 4) AS CustName from MyTable;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜