日期:2014-05-17 浏览次数:20678 次
DECLARE @a DATETIME,@b DATE,@c TIME SET @a='2012-10-21' SET @b='2012-10-21' SET @c='21:21:00' SELECT @a,LEN(@a),@b,LEN(@b),@c,LEN(@c) /* ----------------------- ----------- ---------- ----------- ---------------- ----------- 2012-10-21 00:00:00.000 18 2012-10-21 10 21:21:00.0000000 16 (1 行受影响) */