1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| create table user_top( id serial PRIMARY key, username varchar(20), date timestamptz, grade int );
INSERT INTO user_top(username,date,grade) values ('赵','2022-08-01', 90), ('钱','2022-08-01', 90), ('孙','2022-08-01', 90), ('李','2022-08-01', 95), ('赵','2022-08-02', 80), ('钱','2022-08-02', 60), ('孙','2022-08-02', 70), ('李','2022-08-02', 65), ('赵','2022-08-03', 75), ('钱','2022-08-03', 90), ('孙','2022-08-03', 85), ('赵','2022-08-04', 80), ('李','2022-08-04', 75), ('周','2022-08-04', 90), ('王','2022-08-04', 85), ('赵','2022-08-05', 80), ('孙','2022-08-05', 75), ('李','2022-08-05', 90), ('钱','2022-08-05', 85)
|