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 
    可随意转载,欢迎署名!
  • 相关阅读:
    多线程下单例模式:懒加载(延迟加载)和即时加载
    Java 线程同步
    java 多线程之wait(),notify,notifyAll(),yield()
    序列化和反序列化及线程实现方式
    错题解析
    错题解析
    考试:错题总结
    测试:错题总结
    hashCode与equals的区别与联系
    @Not
  • 原文地址:https://www.cnblogs.com/netsa/p/2814065.html
Copyright © 2011-2022 走看看