[quote=引用 3 楼 qq_40135950 的回复:] [quote=引用 2 楼 sinat_28984567 的回复:] 这两个结果有什么关联吗?如果两个结果集都是两条怎么办,一条的话,加一个子查询就行了,类似这样 select *,(select top 1 name from 表2) as aaa from 表1
select *,(select top 1 name from 表2) as aaa from 表1
[quote=引用 2 楼 sinat_28984567 的回复:] 这两个结果有什么关联吗?如果两个结果集都是两条怎么办,一条的话,加一个子查询就行了,类似这样 select *,(select top 1 name from 表2) as aaa from 表1
这两个结果有什么关联吗?如果两个结果集都是两条怎么办,一条的话,加一个子查询就行了,类似这样 select *,(select top 1 name from 表2) as aaa from 表1
select a.* ,b.* from a,b
22,209
社区成员
121,730
社区内容
加载中
试试用AI创作助手写篇文章吧