sorry if this is OT, but is there any way to make the following mysql code simpler?
SELECT * FROM wp_posts WHERE ID=1 OR ID=15 OR ID=16 OR ID=17 OR ID=18
etc...
sorry if this is OT, but is there any way to make the following mysql code simpler?
SELECT * FROM wp_posts WHERE ID=1 OR ID=15 OR ID=16 OR ID=17 OR ID=18
etc...
What about asking it here: http://forums.mysql.com/ ?
good idea
This may also work:
SELECT * FROM wp_posts WHERE id IN (1, 15, 16, 17, 18);
This topic has been closed to new replies.