T-SQL AND

SQL AND关键字,可以查询到两个或两个以上条件同时为TRUE的记录。

http://www.cnblogs.com/insus/articles/1968148.html为数据源,做演示:

T-SQL AND View Code
SELECT   [ RId ] , [ DT ] , [ Hits ]   FROM   [ dbo ] . [ RecordHits ]
WHERE   [ RId ]   =   ' R2 '   AND   [ DT ]   =   ' 2011-01-25 '

 

执行结果:

T-SQL AND

 

你可能感兴趣的:(t-sql)