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 
    可随意转载,欢迎署名!
  • 相关阅读:
    linux命令备忘
    java搭建finagle(2)
    记一次Time-Wait导致的问题
    读loadBalance技术的一些笔记
    Immutable.js尝试(node.js勿入)
    python flask 部署
    一个奇怪的html上url参数问题
    xxx-servlet.xml vs applicationContext.xml
    大数据环境安装部署步骤
    数据迁移
  • 原文地址:https://www.cnblogs.com/netsa/p/2814065.html
Copyright © 2011-2022 走看看