如何一次性查询到所需要的记录 一个表中,我需要从id字段查询出id=1,3,5,7,9所有单数的记录,应该怎么写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tbl where id in(1,3,5,7,9) select * from tb where id % 2 = 1 select * from TB where id in (1,3,5,7,9) select * from T where id mod 2 = 0 select * from T where id mod 2 = 1 如果你是仅仅查询1,3,5,7,9.select * from tb where id in (1,3,5,7,9)如果你是查询奇数.select * from tb where id % 2 = 1 所有单数select * from tbl where id/2<>0 关于解决SQL SERVER2005企业版提示不能连接远程服务的解决方法 如何将sql server数据库中的datetime字段值都更改为日期型不要时间只显示日期. 怎样修改Sql Server安装路径 再问存储过程的问题 那条速度快? 请问如何自动生成insert语句? 继续求解树形结构求和SQL语句! 数据表中自动编号的取值问题 关于记录集列标题的应用 在sql中,如何写一个存储过程并让它自动执行,我不想用job 来人哈, 【百分紧急求救一个查询】感谢各位老师
select * from tb where id in (1,3,5,7,9)如果你是查询奇数.
select * from tb where id % 2 = 1
select * from tbl where id/2<>0