现有用户表user_profile(device_id 设备号, gender 性别, age 年龄, university 学校, province 省份),示例数据如下: 请输出按设备号升序排序后的第三页结果(每页3条结果,页码从1开始),示例输出如下:
示例1

输入

drop table if exists user_profile;
CREATE TABLE `user_profile` (
	`id` int PRIMARY KEY AUTO_INCREMENT,
	`device_id` int NOT NULL,
	`university` varchar(32) NOT NULL,
	`gender` varchar(14) NOT NULL,
	`age` int ,
	`province` varchar(32)  NOT NULL
);

INSERT INTO user_profile(device_id, gender, age, university, province) VALUES
	(2138,'male',21,'北京大学','BeiJing'),
	(3214,'male',24,'复旦大学','Shanghai'),
	(3543,'female',20,'北京大学','BeiJing'),
	(2315,'female',23,'浙江大学','ZheJiang'),
	(2432,'male',25,'山东大学','Shandong'),
	(2214,'male',22,'复旦大学','Shanghai'),
	(3343,'female',23,'北京大学','BeiJing'),
	(2115,'female',24,'浙江大学','ZheJiang'),
	(3132,'male',25,'山东大学','Shandong');

输出

id|device_id|university|gender|age|province
2|3214|复旦大学|male|24|Shanghai
7|3343|北京大学|female|23|BeiJing
3|3543|北京大学|female|20|BeiJing
加载中...