最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
sql语句多个and和or的优先级
时间:2022-06-29 07:58:48 编辑:袖梨 来源:一聚教程网
sql语句:
代码如下 | 复制代码 |
#查询sql语句 select count(sid) as count,TRUNCATE(income/installnum,2) as price from think_info where (TRUNCATE(income/installnum,2)>=0.2 and pay_type=2 and user_type=0) or (user_type=0 and installnum=0) |
当sql语句中有很多and和or的时候,要注意and和or的优先级,可以加上括号以区分。
相关文章
- 投票即交易,一文读懂 Base 链上的社交预测市场 Upside | CryptoSeed 06-16
- 最热门2025全球交易所现货交易前十-最安全加密货币交易所币安推荐 06-16
- 《七日世界》章鱼先生蓝图收集策略分享 06-16
- 《九州异兽记》御兽令免费获取条件说明 06-16
- 正规币圈十大数字资产平台TOP10-最新虚拟币交易app币安推荐 06-16
- 《艾塔纪元》天丛云技能有哪些 06-16