右。所以我在MySQL DB中创建了一个存储过程,恰好使用了SUBSTRING。
通过查询运行程序让我:
SQL错误1630:函数mydatabase.SUBSTRING不存在
请原谅?
答案 0 :(得分:20)
在第一个括号之前调用Substring
的方法之后是否有空格?
它出现在第40行:
IF i > 1 AND j > 1 AND (s1_char = SUBSTRING (s2, j - 1, 1))
即。确保
select substring(CustomerName, 1, 4) AS CustName from MyTable;
而不是:
select substring (CustomerName, 1, 4) AS CustName from MyTable;