我在 MYSql 数据库中有一个查询。我有一个表order_det
,表的列remarks_desc
包含以下条目:
表结构:
Table: order_det
Columns: rec_id, remarks_desc
order_det 表中的示例记录
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 将其存档,但结果不正确。请帮助我得到正确的结果。