Mysql存储过程插入varchar类型数据失败问题

Navicat下新建带输入参数的存储过程,在运行测试时,输入字符串 报错

错误信息:
Procedure execution failed
1054 - Unknown column 'asdf' in 'field list'

问题原因:字符串类型的输入 需要用引号括起来,

解决方式:在输入不能直接写asdf 而是要写 'asdf'

猜你喜欢

转载自lcg767203112.iteye.com/blog/2344854
今日推荐