Mysql stored procedure fails to insert varchar type data

Create a new stored procedure with input parameters under Navicat. When running the test, the input string will report an error

Error message:
Procedure execution failed
1054 - Unknown column 'asdf' in 'field list'

Cause of the problem: The input of string type needs to be enclosed in quotation marks , the

solution: you can't write asdf directly in the input but write 'asdf'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326485071&siteId=291194637