摘要:
1:获取指定月份的天数 int Days = DateTime.DaysInMonth(Year, Month);//Year指定的年份,Month指定的月份 2:当前月份的天数 int idate=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month); [新闻]微软七月安全... 阅读全文
posted @ 2008-05-16 12:55
代码示例
阅读(422)
评论(0)
推荐(0)
摘要:
程序中最关键的是如何将变量加到SQL语句中去。“SQL = ”Select * from grade where 姓名 like ‘%“ + str + ”%’“”语句中str是变量,要得到正确的格式只要按照下面的两个步骤进行操作。 (1)写出正确的SQL语句,SQL =" Select * from grade where 姓名 like '%敏%'",因为姓名是文本型变量,所以必须加上单引号,... 阅读全文
posted @ 2008-05-16 11:36
代码示例
阅读(464)
评论(0)
推荐(0)