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')
精彩评论