织梦CMS - 轻松建站从此开始!

欧博ABG官网-欧博官方网址-会员登入

欧博娱乐can I place a sql query in a sql hana place ho

时间:2025-07-27 19:41来源: 作者:admin 点击: 2 次
As error says you, expressions are not supported for column view parameter: Can't use column expression as column view parameter. However, there are o

As error says you, expressions are not supported for column view parameter: Can't use column expression as column view parameter.

However, there are options to calculate it:

If your parameter's value is semantically related to this calculated view (e.g. you need some default value for this view that is calculated based on some logic), then you can create a stored procedure with one output parameter to calculate the value, and use parameter type Derived From Procedure/Scalar Function. To make that value adjustable from frontend you can mark it as Input enabled. Or if calculated value is based on user input, you can map input parameters of procedure to input parameters of calculation view in section Parameters/Variables -> Procedures/Scalar functions for input parameters.

create procedure sp_dummy ( in dummy nvarchar(10) default '0', out val nvarchar(10) ) as begin val = to_char(current_date, 'yyyymmdd'); end;

1

3

To return a result set, use a SELECT statement because anonymous blocks do not have any parameters defined.

do begin declare lv_param nvarchar(100); select max('some_date') into lv_param from dummy /*your_table*/; select * from "_SYS_BIC"."path.to.your.view/CV_TEST" ( PLACEHOLDER."$$P_DUMMY$$" => :lv_param ); end;

That with calculation view based on the table RSPCLOGCHAIN filtered by output of the procedure declared above gives me

LOG_ID | DATUM | INPUT_PARAM | CUR_DATE --------------------------+----------+-------------+---------- 8FRV39X1O8814X6IJMLPI47PV | 20201221 | some_date | 20201221 C7S9EY3J0GYA76Y2S9CIA39QR | 20201221 | some_date | 20201221 35R8A3RFUG00EBY8MZQWJLIXF | 20201221 | some_date | 20201221 850MVHOJIKIDD7EVY6WFIYPZN | 20201221 | some_date | 20201221

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-07-28 00:07 最后登录:2025-07-28 00:07
栏目列表
推荐内容