如何将子查询作为函数参数
运行 select get_feeTypeamount(SELECT ftp.type_plan_id
FROM tbl_fee_type_plan ftp
WHERE ftp.type_plan_id=17) as total_amount
答案 0 :(得分:1)
您不需要子查询。只需将该功能应用到ftp.type_plan_id
。{/ p>中的SELECT
列即可
这样的事情对你有用:
SELECT get_feeTypeamount(ftp.type_plan_id) as total_amount
FROM tbl_fee_type_plan ftp
WHERE ftp.type_plan_id=17