摘要:
一定要有jquery132min.js文件引用哦................<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>无标题页</title> <script src="jquery132min.js" type="text/javascript"></script> <script type="text/javascrip 阅读全文
摘要:
表t_c 和t_p如上图select * from t_cselect * from t_p查询方法一: select * from (select row_number() over(partition by cid order by cdate desc) as rowid,* from t_p) T where T.rowid<=5 使用sql2005的特性 row_number() over()方法二: declare @temp table(id int,cid int,cdate datetime); declare @id int; declare cur cursor.. 阅读全文