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.
一个简单的问题,我在 WEB 中找不到答案,因为它很不寻常,但是: 我如何构建 SQLWHERE something IN (...)命令,它像 SQL 一样返回每条记录something LIKE '%'?
WHERE something IN (...)
something LIKE '%'
您可以使用
WHERE something IN (something)
这将返回每条记录something is not null(与 相同的行为something LIKE '%')
something is not null
WHERE something like '%value1%' OR something like '%value2%' OR something like '%value3%' etc