从数据表中获得一条随机数据
{Code}
select * from img_lib where id >(select floor(max(id)*rand()) from img_lib) limit 0, 1
{Code}
select * from img_lib where id >(select floor(max(id)*rand()) from img_lib) limit 0, 1
YiiLib 专注于: 专业Web开发教程和专业Web开发服务
Copyright © 2011 - 2024 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
留言