帮忙些个sql语句

飞起来一脚 2003-12-23 08:42:28
用一个sql查询实现以下功能:

select id,title,name from forum where father=0
建立一个记录集
获得rs("id")

select father,name as "姓名" from forum where father=rs("id")
然后列出id,title,name,father,姓名
...全文
28 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
笑对最好 2003-12-23
  • 打赏
  • 举报
回复
up
sx1123 2003-12-23
  • 打赏
  • 举报
回复
应该是select father,name as "姓名" from forum where father in (select id from forum where father=0)
不好意思
sx1123 2003-12-23
  • 打赏
  • 举报
回复
select father,name as "姓名" from forum where father=(select id from forum where father=0)

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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