摘要: 1、正则表达式的使用Mysql > select name,email from t where email regexp "@163[.,]com$"2、巧用Rand()提取随机行Mysql > select * from t order by rand(); Mysql > select * from order by rand() limit 3; //随机取出三条数据3、利用group by 的 with rollup使用group by的with rollup字句可以检索出更多的分组聚合信息。 注意:with rollup 不可以和order b 阅读全文
posted @ 2013-07-17 11:40 hoho,SalesForce 阅读(251) 评论(0) 推荐(0) 编辑