mysql syntax on not equal many values

后端 未结 3 1257
被撕碎了的回忆
被撕碎了的回忆 2020-12-28 16:08

I\'m trying to get the right syntax for the following case?

SELECT * 
FROM wp_posts AS p 
WHERE post_type = \'post\' 
AND post_status = \'publish\' 
AND ID &         


        
3条回答
  •  感动是毒
    2020-12-28 16:41

    SELECT * FROM wp_posts AS p WHERE post_type = 'post' 
    AND post_status = 'publish' AND 
    ID NOT IN (5616,1095,1357,271,2784,902) ORDER BY post_title DESC
    

提交回复
热议问题