王者传奇2144手游官网:请问一个sql查询+表达式的问题

来源:百度文库 编辑:中科新闻网 时间:2024/05/03 05:51:19
急问一句sql
能不能
select * from 表 where (26 除 某一列的值 的余数 等于0)
类似这么写
select * from table_a where ((26 % tier_a) == 0)

问sql能不能这样操作?能的话具体要怎么写?

select * from table_a where 26 mod tier_a = 0
应该这么写

select * from table_a where 26 mod tier_a = 0
正解

select * from table_a where 26%tier_a=0

SQL不是有查询分析器吗