标签:span hda HERE 空值 查找 范围 nic day user
SELECT * FROM user;
SELECT username,id FROM user;
SELECT * FROM user WHERE id>10;
SELECT * FROM user WHERE id=10;
SELECT * FROM user WHERE id=10 AND group_id = 0;
SELECT * FROM user WHERE id=10 OR group_id = 0;
SELECT * FROM user WHERE nickname LIKE ‘_d%‘;
SELECT * FROM user WHERE nickname IN (‘admin‘);
SELECT * FROM user WHERE nickname NOT IN (‘admin‘);
SELECT * FROM user WHERE id BETWEEN 2 AND 10 ;
SELECT * FROM user WHERE birthday IS NULL ; //birthday 值为null的数据
SELECT * FROM user WHERE birthday IS NOT NULL ; // birthday 值不为null的数据
标签:span hda HERE 空值 查找 范围 nic day user
原文地址:https://www.cnblogs.com/starshine-zhp/p/13228069.html