用视图+存储过程解决复杂查询的排序分页问题
摘要:数据库中复杂的联查+筛选条件+排序+分页一直是比较头疼的问题为了模拟这个问题,首先建立两个表create table t_userType ( id int identity(1,1) not null primary key, name varchar(50))GOcreate table t_user ( id int identity(1,1) not null primary key, t_userTypeId int not null, name varchar(50), foreign key (t_userTypeId) references ...
阅读全文
posted @ 2012-06-10 13:26