oracle中排序和前几个的顺序
摘要:oracle查询前5条数据,然后进行时间排序select * from 表名 where rownum <6 order by t_time desc;上述表达式老是查询的都是前5条数据,然后按照时间排序对按照时间排序后的结果取前5条数据select * from (select * from 表名 order by t_time desc) where rownum <6;
阅读全文
asp.net form验证
摘要:借鉴别人的代码,自己整理下有些代码不是很清楚,先记录一下1.首先设置web.config(1)把authentication的mode改为forms,原来默认的应该是windows,同时设置登录页面 <authentication mode="Forms"> <forms loginUrl="login.aspx" name=".ASPXAUTH"></forms> </authentication>(2)设置权限目录 location这个目录和system.web是同一级目录,path
阅读全文