mysql学习 3 过滤数据
where子句例子,在products里检索prod_name,prod_price,但是不返回所有行,只返回prod_price=2.50的行
select prod_name,prod_price
form products
where prod_price = 2.50;
where子句操作符
=等于
不等于
!=不等于
=大于等于
between在指定2个值之间
一个类似的例子:
select prod_name,prod_price
form products
where prod_name=’fuses’;
另外一个例子
select prod_name,prod_price
form products
where prod_price
页:
[1]