SQL to Query text in access with an apostrophe in it

后端 未结 5 994
你的背包
你的背包 2020-12-14 00:33

Please help me with this because I cannot seem to get it right

I am trying to query a name(Daniel O\'Neal) in column names tblStudents in an access database however

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 01:05

    How about more simply: Select * from tblStudents where [name] = replace(YourName,"'","''")

提交回复
热议问题