首页 >社区问答列表 >sql语句中 加上一个负数怎么写?

sql语句中 加上一个负数怎么写?

$sql ="update lzh_cds_items set ci_fetch_num = ci_fetch_num+(-20)";

这么写对吗


  • 巴扎黑
  • 巴扎黑    2017-02-27 15:54:091楼

    ……加负值,不就是减吗???

    $sql ="update lzh_cds_items set ci_fetch_num = ci_fetch_num-20";


    +0添加回复

  • 回复