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.
我可以在 mysql 中为 select 进行不区分大小写的 IN 操作吗?例如,我有一个名为“user”的表和一个字段名 firstName。我想找到所有“约翰,史塔克”。
我可以把查询写成
SELECT firstName FROM user WHERE firstName IN ("JOHN", "STARK")
UPPER(firstName)如果值的大小写IN无关紧要,您可以这样做。
UPPER(firstName)
IN