select c_gcode,c_barcode,c_name,c_price_disc,c_price,c_status  from  tb_gds  where ( c_price like '%._[1,2,3,4,5,6,7,8,9]%'  or c_price_disc like '%._[1,2,3,4,5,6,7,8,9]%' )and c_weigh='否' and  c_status='正常流转' order by c_price_disc desc



select c_gcode,c_barcode,c_name,c_price_disc,c_price,c_status  from  tb_gds  where c_price like '%._[1,2,3,4,5,6,7,8,9]%'  or c_price_disc like '%._[1,2,3,4,5,6,7,8,9]%' and c_weigh='否' and  c_status='正常流转' order by c_price_disc desc
 
结果肯定是不一样的。SQL 的 or注意事项 要正确使用括号 

相关文章:

  • 2021-08-26
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2021-12-17
  • 2021-09-06
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-08-07
  • 2022-12-23
  • 2022-02-26
  • 2022-01-29
相关资源
相似解决方案