文章分类 -  sql

摘要:select count(pid) from m_pics WHERE pPub=1 AND pType=isnull(@pType,pType) AND pPixes=isnull(@pixes,pPixes) 通过isnull来解决 pType=isnull(@pType,pType) 意思是 如果@pType is nu... 阅读全文
posted @ 2008-10-17 14:43 小眼睛老鼠 阅读(521) 评论(0) 推荐(0)
摘要:地址:http://www.cnblogs.com/clhed/articles/1269415.html 本文的数据库用的是sql server自带数据Northwind 连接字符串 confige文件 1. 只返回单一记录集的存储过程 存储过程Categoriestest1 2. 没有输入输出的 阅读全文
posted @ 2008-08-16 17:32 小眼睛老鼠 阅读(24240) 评论(8) 推荐(13)