摘要: //调用存储过程执行类似于2//select count(*) from userinfo where username=username and pwd=pwd and grade=grade3//接受 3个参数分别用来表示用户名、用户密码、用户权限4public bool GetUserinfo(string username,string pwd,string grade)5    {6  ... 阅读全文
posted @ 2010-07-28 14:56 Bedhi 阅读(2212) 评论(0) 推荐(0)
摘要: DECLARE @Date DATETIMESET @Date=GETDATE()--前一天,给定日期的前一天SELECT DATEADD(DAY,-1,@Date) AS '前一天'--后一天,给定日期的后一天 SELECT DATEADD(DAY,1,@Date) AS '后一天'GO--月初,计算给定日期所在月的第一天--这个计算的技巧是先计算当前日期到“1900-01-01&r... 阅读全文
posted @ 2010-07-28 14:53 Bedhi 阅读(822) 评论(1) 推荐(0)