阅读背景:

SQL - 当用户表单输入搜索条件包含撇号时,数据库搜索会出错

来源:互联网 

I have a database of mountains the names of which often contain an apostrophe, e.g. Beinn A'Chroin. All my search criteria work fine except when the user inputs a search via the form with the apostrophe included, i.e. Beinn A'Chroin, and then it throws up an error - Beinn A will work, Chroin will work, but never with the apostrophe. As most users will invariably insert the proper name, including the apostrophe I would prefer always to have it in the table data - Your help appreciated - Thanks JohnI have a database of mountains the names of whi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: