摘要: header('Content-type:text/html;charset=utf-8');function cutstr($str){ #计算$str的字符个数 preg_match_all("/./u", $str, $len); $strlen = (int) count(... 阅读全文
posted @ 2014-09-18 11:40 lovefuwei 阅读(902) 评论(0) 推荐(0) 编辑
摘要: 数据库的随机查询SQL1. Oracle,随机查询20条select * from(select* from 表名order by dbms_random.value)where rownum <= 20;2.MS SQL Server,随机查询20条select top 20* from表名order by newid()3.My SQL:,随机查询20条select*from表名 order by rand() limit 20随机查询指定人员的一条未读消息帮助消息表 S_MSG_HINT帮助消息ID SMH_ID NUMBER(20) PK帮助消息内容 SMH_TEXT VARCH 阅读全文
posted @ 2013-10-09 10:55 lovefuwei 阅读(2890) 评论(0) 推荐(1) 编辑