Sql Server 中 in 和 between 的用法..in和berween的用法很难区分开来.\分别举例说明一下.--------------------------------------------------------------------
问题描述:
Sql Server 中 in 和 between 的用法..
in和berween的用法很难区分开来.
\分别举例说明一下.
--------------------------------------------------------------------
答
常用的情况:between:select * from [tablename] where [日期] between '2008-01-01' and '2008-10-31' --查询字段[日期]在2008-01-01(含)至2008-10-31(含)之间 表tablename的记录.in:1、select * from [tablename] ...