gpt4 book ai didi

MySQL查询 "\"

转载 作者:行者123 更新时间:2023-11-30 00:54:24 24 4
gpt4 key购买 nike

我想查询所有以“\”结尾的 user_questions。

我尝试了以下方法,但似乎都不起作用。它们都返回空结果。

select * from user_question where question like "%\\"

select * from user_questions where question like "%[\]"

select * from user_questions where question like "%\\\\"

select * from user_questions where question like "%[\\]"

我使用的是mysql工作台6.0.7

mysql - How to handle query search with special characters /(forward slash) and \(backslash)

最佳答案

select * from user_questions where question like "%\\\\"

这个应该可以用,我自己测试过。

关于MySQL查询 "\",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20712495/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com