摘要:
Request.QueryString["id"] 只能读取通过地址栏参数传递过来的名为id的参数。Request["id"]是一个复合功能读取函数。它的优先级顺序为QueryString > Form > Cookies > ServerVariables也就是说,如果存在名为id的地址栏参数,R... 阅读全文
摘要:
熟练一下group by的用法 order by数据为汉字时加N 如where name=N'张三' null 为"不知道" ,而不是空值 5+NUll 也等于 Null, 等于null是查不出来的,要查出null的值,用 is null , 不为空就是 is not nullselect Age,count(*) from emloyee group by age //将每个年龄分组, 并且计算总数,而且是group by什么,就select的字段必须出现在group by 中,(聚合函数除外)聚合函数不能出现在where语句中, 所以要用having. 阅读全文