开发者

MySQL function which takes a set of strings?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜