Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将字符串数据添加到我的 SQLite 数据库表中,其中包含“... O'Clock ...”。在执行时,由于查询字符串中的 ',我在“时钟”附近收到语法错误。如何将 ' 传递到该查询字符串中?
提前致谢。
您需要传递两个 ' 才能将 ' 单次插入到您的表格中。
这意味着你的字符串应该是 "...O''Clock..."
这应该有效。