///数据库定义变量,并且可以当value 值插入
select @num:=count(userid) from t_users ;
insert into t_game_online (pnum) VALUES (@num);