当前位置:Gxlcms > mysql > Incorrectsyntaxnear's'

Incorrectsyntaxnear's'

时间:2021-07-01 10:21:17 帮助过:19人阅读

出错的SQL: update address set is_mapping='A',lat=39.8123779296875,lon=-74.9393539428711,Mapping_Platform='BingA',Mapping_Return_Result='High',County='04',Municipality='0406',source_address='196 Veteran's Ave, West Berlin, NJ 08091' where a

出错的SQL:

update address set is_mapping='A',lat=39.8123779296875,lon=-74.9393539428711,Mapping_Platform='BingA',Mapping_Return_Result='High',County='04',Municipality='0406',source_address='196 Veteran's Ave, West Berlin, NJ 08091' where address_id=2481200

错误发生在:source_address='196 Veteran's Ave, West Berlin, NJ 08091' , 这个字段里面有个单引号。

解决方案:将‘替换成’’

Code:sDisplayName.Replace(“'”, “''”)

人气教程排行