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.
假设表 A 中有一个 channel_name 'DISCOVERY' 有没有办法可以编写查询
SELECT * FROM A WHERE CHANNEL_NAME LIKE '%discovery%'
(这不会返回任何东西,因为它是大写的)。我想以任何顺序编写咒语并获得输出。有什么办法可以做到吗?使用小名或有什么帮助?
您可以使用lower():
SELECT * FROM A WHERE LOWER(CHANNEL_NAME) LIKE '%discovery%'
LCASE
select * FROM A WHERE LCASE(CHANNEL_NAME) LIKE '%discovery%'