小白求助!!!
create table #r(customer int,amount decimal(12,2))
insert into #r
select customer,sum(totalAmount) as amount
from DM_DeliveryOrder a
where a.company in (select id from t)
and convert(varchar(7),a.createTime,120) = convert(varchar(7),'2010-10-12',120)
go
declare @id int
set @id = 6
;with t as
(
select id,parentId
from SM_Company
where id = @id
union all
select e.id,e.parentId
from SM_Company as e join t as f on e.parentId = f.id
)
select * from #r
drop table #r
报错:对象名 't' 无效。
应该如何写,将t作为临时表的查询条件。
相关推荐
雷尼绍球杆仪数据怎么看 求助!!!
求助!!!测试的时候是让球杆仪逆时针转两圈,然后顺时针转两圈,得到的源文件如下为什么有这么多组数据,我该用哪一个啊??? 100 100 0 360 180 100 X Y CCW CW -0.1 0.1 -0.1 0.1 90 110 1 3.97887357729738 0 lcw 20200108-220206 20200108-222316 Renishaw QC20-W 064J33 1 064J33-130813-00 20130813 Renishaw Renishaw Ballbar 20 5.09.05.03 CCW 20.0 626 1876 3.984 -
【求助!!!】selenium如何不生成geckodriver.log文件
@retry(5) def page_driver(url): proxies = requests.get("proxy_API").json()["ip"] # 设置代理 profile = webdriver.FirefoxProfile() proxy = proxies["http"].replace("http://", "") ip, port = proxy.split(":") port = int(port) settings = { 'network.proxy.type': 1, # 开启“手动设
永磁同步电机矢量控制求助-SVPWM_control.mdl
永磁同步电机矢量控制求助-SVPWM_control.mdl 各位大神们,我刚开始学电机,在Matlab中搭建了矢量控制模型,可是速度一直是负的,帮我看看是什么原因吧!!!万分感谢啊!!!
Halo2.x 开源博客主题Theme-Hao
Halo2.x 开源博客主题Theme-Hao,建站时间必填 如果安装主题后报错,请仔细查阅主题说明 与更新说明!!! 如果还未解决,可以加群求助!!! 如果群友也解决不了,再考虑提ISSUE!!! 1.5.5及以上版本需要Halo版本>=2.17.0 1.6.0及以上版本需要Halo版本>=2.20.0(自定义登录页兼容) 若安装主题后出现500错误,请到主题设置页面,将每个设置项都保存一下!!!
mac版本才可以用,别下载!!!
mac版本才可以用,别下载!!!


