gpt4 book ai didi

mysql - 存储过程花费很长时间并且没有输出

转载 作者:行者123 更新时间:2023-11-29 19:04:49 25 4
gpt4 key购买 nike

我正在执行以下存储过程

CREATE PROCEDURE pn_s_pnl.`Takeoffone`()
BEGIN
SELECT
( select service_display_nm from billing_services_t) as bundle ,
(select product_type_nm from billing_product_type_t) as package
;
END;

但是,当我单独执行语句时,花费了很长时间并且没有结果,

select service_display_nm from billing_services_t;
select product_type_nm from billing_product_type_t

我很快就会得到结果,存储过程是否无法返回该列的所有行,我没有得到。

最佳答案

我把它写成,

CREATE PROCEDURE pn_s_pnl.`Takeoffone`()
BEGIN
select service_display_nm from billing_services_t as bundle ;
select product_type_nm from billing_product_type_t as package
;
END;

这工作正常。

关于mysql - 存储过程花费很长时间并且没有输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43589900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com