Home  >  Article  >  Database  >  SqlServer int型转varchar型 出现*号

SqlServer int型转varchar型 出现*号

WBOY
WBOYOriginal
2016-06-07 17:42:271689browse

SqlServer int型转varchar型 出现*号 今天调一个bug,错误提示执行语句 * 附近有语法错误,看了存储过程半天没啥反应,我就更本没有* .打印了一下语句发现 where Mor_Id=* 仔细一看set @sqlupdate+=' where'这句话,将int行Id转成成varchar型,因

SqlServer int型转varchar型 出现*号

  今天调一个bug,错误提示执行语句 * 附近有语法错误,看了存储过程半天没啥反应,网站空间,我就更本没有* .打印了一下语句发现 where Mor_Id=*

仔细一看set @sqlupdate+=' where'这句话,将int行Id转成成varchar型,因为id太大超过了,所以成了*

posted on

,网站空间,香港服务器
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