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 
    可随意转载,欢迎署名!
  • 相关阅读:
    Git远程操作详解
    Markdown介绍
    Git & GitHub 学习
    小甲鱼Python笔记(类)
    小甲鱼Python笔记(下)
    小甲鱼Python笔记(上)
    compare.go
    compact_op.go
    cluster.go
    client.go
  • 原文地址:https://www.cnblogs.com/netsa/p/2814065.html
Copyright © 2011-2022 走看看