在线等,帮帮忙吧,高手们!!php与Mysql的问题

worksworks 2006-02-16 03:21:33
这是我的SQL语句:select newsdate,edition,count(*)
from record,rec_user
where ru_iuser='mgq'
and date_format(ru_idate,'%c/%e/%Y')='2/9/2006'
and ru_id=recid
group by newsdate,edition
order by newsdate,edition
newsdate是报纸日期,edition是版本号,我怎样才能根据这两个值得出记录总条数呢????高手们,帮帮小妹吧!!
...全文
87 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
helloyou0 2006-02-17
  • 打赏
  • 举报
回复
你的语句有什么问题?
web_php 2006-02-17
  • 打赏
  • 举报
回复
select count(newsdate),count(edition),其他你要取出的字段
from record,rec_user
where ru_iuser='mgq'
and date_format(ru_idate,'%c/%e/%Y')='2/9/2006'
and ru_id=recid
group by newsdate,edition
order by newsdate,edition

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧