摘要:
在你的my.ini(Windows)或my.cfg(Linux) 中就有啊。或者如果已经连入MySQL可以直接SQL codemysql> show variables like 'port';+---------------+-------+| Variable_name | Value |+---------------+-------+| port | 3306 |+---------------+-------+1 row in set (0.00 sec)mysql> 阅读全文
摘要:
http://topic.csdn.net/u/20110407/15/cfc8e39f-8a7d-4fec-af34-f3fe872bee36.htmlselect * from (select top 5 protId,sortId,userId,regdate,'新表' tbname from tb1 order by regdate descunionselect top 5 protId,sortId,userId,regdate,'旧表' tbname from tb2 order by regdate desc)as aorder by a.reg 阅读全文
摘要:
CREATEPROCEDUREp_GetStudentInfo @PageSizeINT, @PageIndexINT, @strWherevarchar(1500)--查询条件(注意:不要加where) As Begin select*from( selectrow_number()over(orderbyStudentInfoId)row,*fromStudentInfo)StudentInfo whererowbetween@PageSize*(@PageIndex-1)and@PageSize*@PageIndex End go通用方法USE [OrderDB]... 阅读全文