Home >Database >Mysql Tutorial >存储过程传递参数与表中字段属性相同导致错误的问题_MySQL

存储过程传递参数与表中字段属性相同导致错误的问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:41:311302browse

bitsCN.com
存储过程传递参数与表中字段属性相同导致错误的问题 一同事写存储过程,在存储过程中传递参数,传递的参数与表中某字段属性相同: 如下   存储过程传递参数与表中字段属性相同导致错误的问题_MySQL 请看红色部分 这样导致where 条件永远为真,name=name 导致错误。 传递的参数与表中字段一定不相同。  作者 aeolus_pu bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn