这条SQL语句怎么写

ivt 2003-10-22 01:56:36
表:
a
aid fill remark
1 guo guo
2 chen chen
a_detail
id aid productid
1 1 aaaaa
a.aid=a_detail.aid
b.id是流水号
现想实现查询select
把a.id,a.fill,a.remark,a_detail.productid查询出来
并且要显示所有a中的记录。
...全文
29 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ivt 2003-10-22
  • 打赏
  • 举报
回复
谢谢楼上,
from a left outer join a_detail on .......
blp 2003-10-22
  • 打赏
  • 举报
回复
同意duibudui(要命的一分)
sleeping100 2003-10-22
  • 打赏
  • 举报
回复
select a.id,a.fill,a.remark.a_detail.productid from a,a_detail where
a.aid=a_detail.aid

不知道有没有理解对楼主的意思?
duibudui 2003-10-22
  • 打赏
  • 举报
回复
select a.id,a.fill,a.remark,a_detail.productid from a left out join a_detail on a.aid = a_detail.aid

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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