
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 · 4042 阅读 · 0 评论 -
Mysql 表中随机取数据记录
SELECT * FROM table_name ORDER BY rand() LIMIT 5;原创 2015-02-02 18:08:01 · 1322 阅读 · 0 评论