谁能给专题

有谁能给出个好点的SQL语句或存储过程么?

数据 库是MYSQL5的,数据的表结构如下: create table t_visitonline (    id                   bigint(20) not null auto_increment,    online               int(11) comment '在线人数',    counter              int(11) comme