我正在尝试使用以下命令在Shell中执行命令
select
productid, ListPrice, ProductCategoryID,
first_value(listprice) over (partition by productcategoryID order by listprice ASC) as minforcat,
first_value(listprice) over (partition by productcategoryID order by listprice DESC) as maxforcat,
avg (listprice) as avg_price_overall
from
Product
group by
productid, ProductCategoryID, listprice
执行此代码后,我得到的错误为
let mut child = Command::new("ilorest")
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()
.expect("ilorest command failed to start");
child
.stdin
.as_mut()
.ok_or("Child process stdin has not been captured!")?
.write_all(b"login HOST -u [USERNAME] -p [PASSWORD] \n
exit")?;
我不知道我在哪里失踪?
答案 0 :(得分:0)
我得到了答案,我丢失了代码
let output = child.wait_with_output().unwrap();