![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySql
文章平均质量分 84
「已注销」
这个作者很懒,什么都没留下…
展开
-
Mysql Procedure 使用concat申城动态字段、存储查询结果到临时变量
1.declare t_hasSigned tinyint(3); set t_hasSigned = 0; set @sqlStr = concat('select count(playerId) from tb_sign where playerId =',iPlayerId , ' and day', iSignDate, '=1 into @t_hasSigned' );原创 2013-06-24 18:38:57 · 3976 阅读 · 0 评论 -
Mysql 表中随机取数据记录
SELECT * FROM table_name ORDER BY rand() LIMIT 5;原创 2015-02-02 18:08:01 · 1251 阅读 · 0 评论