soyizi 发表于 2018-10-10 11:58:58

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]
查看完整版本: mysql学习 3 过滤数据