zoukankan      html  css  js  c++  java
  • SQL 的 or注意事项 要正确使用括号

    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
     
    结果肯定是不一样的。QQ截图20121212094600 
    可随意转载,欢迎署名!
  • 相关阅读:
    Spring AOP入门基础-继承、装饰者,代理的选择
    Java Ajax入门
    Servlet Config和Context入门
    MapReduce的Shuffle理解
    Servlet Response常用方法
    Servlet Request常用方法
    HDFS中block设置128M的原因
    【Java】java获取json中某个字段
    【Java】字符串转json
    【Linux】shell脚本参数传递
  • 原文地址:https://www.cnblogs.com/netsa/p/2814065.html
Copyright © 2011-2022 走看看