我在MYSQL数据库中有一个查询。我有一个表order_det
,该表的列remarks_desc
包含的条目如下:在上面选择包含一个或多个单词的记录
表结构:在order_det表
Table: order_det
Columns: rec_id, remarks_desc
记录样本
rec_id remarks_desc
_________________________________________________________
1 a specific PROGRAMMING problem
2 A software Algorithm
3 software tools commonly USED by programmers
4 Practical, answerable problems that are unique to the programming profession
5 then you’re in the right place to ask your question
6 to see if your QUESTION has been asked BEFORE
我的要求,我想只有选择记录包含以全部大写字母存储的更多单词。从以上6条,我想只有跌破1,3,6记录选择:
rec_id remarks_desc
__________________________________________________
1 a specific PROGRAMMING problem (it contains one all uppercase word PROGRAMMING)
3 software tools commonly USED by programmers (it contains one all uppercase word USED)
6 to see if your QUESTION has been asked BEFORE (it contains two all uppercase words QUESTION and BEFORE)
我试图存档该使用LIKE,REGEXP但得到不正确的结果。 请帮我拿到正确的结果。
Tim,是表格整理是区分大小写的。但它并不完全返回输出,包括入口没有完全盖住单词的初始文字。 – Manim
对不起,我不太了解你的评论。你能给我一个我的查询匹配的东西,你不想匹配的例子吗? –