摘要:
select name form table where name !='jack'; 该语句只能查出第1行,也就是mike; select name form table where name !='jack' or name is null; 该语句可以查出第1行和第3行,也就是mike和NUL 阅读全文
摘要:
具体如下: SELECT `post_title`,`post_date` FROM post WHERE `post_status`='publish' ORDER BY view_count desc LIMIT 5,5 使用上述SQL查询的时候,很有可能出现和LIMIT 0,5相同的某条记录, 阅读全文