开发者

MySQL function which takes a set of strings?

开发者 https://www.devze.com 2022-12-08 11:16 出处:网络
There\'s a mysql funct开发者_运维百科ion which works like this: SELECT * FROM myTbl WHERE name ???(\'bob\', \'jane\', \'sally\')

There's a mysql funct开发者_运维百科ion which works like this:

SELECT * FROM myTbl WHERE name ???('bob', 'jane', 'sally')

The above query should return all records where name is bob, jane, or sally. Where it says ??? above is where the function name should be.

Can anyone remind me what that function is called?


SELECT * FROM myTbl WHERE name IN ('bob', 'jane', 'sally')
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号