SqlServer基础:IsNull

SELECT  @temp = ISNULL(point, 0) FROM   dbo.User where Nid=6

如果User表中的point字段为null的话,则对@temp赋值0

posted @ 2013-10-08 17:46  武沛齐  阅读(611)  评论(0编辑  收藏  举报