我正在尝试使用 like 语句过滤 sql 查询中的结果。这是结果
/q/my_rat_terrior_is_about_8_just_this_moring_hes_barley_moving_around_panting_heavy_and_shaking_like_shivering/1
/addquestion
/addquestion/Validation
/q/how_do_you_get_a_hamster_out_of_a_wall/2
这些是存储在我的数据库中的 url。我想匹配这样的网址
/q/how_do_you_get_a_hamster_out_of_a_wall/2
/q/my_rat_terrior_is_about_8_just_this_moring_hes_barley_moving_around_panting_heavy_and_shaking_like_shivering/1
这是我尝试过的:
select * from MyURLs where MYuri LIKE '/q/'
但它没有返回任何结果。对此有任何想法吗?