“条件运算符”:where:条件运算符 > < = ! <>不等于 用and连接其他条件 # 计算结果是0 则表示没有成立的条件 # 计算结果非0 则按规定条件返回 select * from 表 where 钱>100; “逻辑运算符”:where:逻辑运算符 && || !,MySQL中用and和,or或,not非 替换 select * from 表 where 钱>100 and 钱<500; select * from 表 where 钱>100 or 钱<50; select * from 表 where not 钱>100 and not 钱<500;