摘要: 数据库截取一定长度的字符串:/**//*******************************************作者:小朱功能:获取一定长度的字符串日期:2004年11月01日*******************************************/CREATEFUNCTION[dbo].[uf_GetString](@strVarChar(2000)='',--要截取的... 阅读全文
posted @ 2006-07-05 09:50 迪克猪 阅读(1889) 评论(1) 推荐(0) 编辑
摘要: 在数据库的查询过程中,遇到以下问题:当select * from tKeyword where typeId= case when @typeId < 0 then null else @typeId endorder by orderNo desc这句话是正确的,但是当@typeId < 0不出结果,而数据库中有满足条件typeId=null的数据。后来进行了以下处理:if @typ... 阅读全文
posted @ 2006-07-05 09:38 迪克猪 阅读(863) 评论(0) 推荐(0) 编辑