开发者

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

开发者 https://www.devze.com 2023-01-12 13:17 出处:网络
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:

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

精彩评论

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