董晓涛(David Dong)

博客园 首页 新随笔 联系 订阅 管理

仔细看一下下面的语句你就明白啦:)

---------------------
DECLARE @user_password varchar(12)
set @user_password='DavidDong'
IF CAST (@user_password AS varbinary(12)) =
CAST ('Daviddong' AS varbinary(12))
PRINT 'Password match'
ELSE
PRINT 'Password mismatch'

------------------
declare @user_password Varchar(12)
set @user_password='DavidDong'

if (@user_password='daviddong')
PRINT 'Password match'
ELSE
PRINT 'Password mismatch'


 

posted on 2005-02-07 10:21  董晓涛  阅读(437)  评论(0编辑  收藏  举报