HANA SQL Script瀛︿範锛?锛夛細Orchestration Logic

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HANA SQL Script瀛︿範锛?锛夛細Orchestration Logic相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/values' title='values'>values   sele   varchar   reads   ati   RoCE   procedure   where   nbsp   

4.SAP HANA SQL Script

4.1 Orchestration Logic

1.Orchestration Logic

绀轰緥锛歰rchestrationProc

CREATE PROCEDURE orchestrationProc
 LANGUAGE SQLSCRIPT
 READS SQL DATA AS
 BEGIN       
       DECLARE v_id BIGINT;       
       DECLARE v_name VARCHAR(30);       
       DECLARE v_pmnt BIGINT;       
       DECLARE v_msg VARCHAR(200);    
DECLARE CURSOR c_cursor1 (p_payment BIGINT) FOR SELECT id, name, payment FROM control_tab WHERE payment > :p_payment ORDER BY id ASC;
OPEN c_cursor1(250000); FETCH c_cursor1 INTO v_id, v_name, v_pmnt; v_msg = :v_name || 鈥?/span> (id 鈥?/span> || :v_id || 鈥?/span>) earns 鈥?/span> || :v_pmnt || 鈥?/span> $.鈥?/span>; CALL ins_msg_proc(:v_msg); CLOSE c_cursor1; END

procedure :ins_msg_proc

--鍒涘缓message琛?/span>
CREATE TABLE message_box (p_msg VARCHAR(200), tstamp TIMESTAMP);

--鍒涘姙procedure
CREATE PROCEDURE ins_msg_proc (p_msg VARCHAR(200))
 LANGUAGE SQLSCRIPT AS
 BEGIN   
       INSERT INTO message_box VALUES (:p_msg, CURRENT_TIMESTAMP);
 END;

 



以上是关于HANA SQL Script瀛︿範锛?锛夛細Orchestration Logic的主要内容,如果未能解决你的问题,请参考以下文章

寰湇鍔¤縼绉昏锛堜笁锛夛細閰嶇疆涓績SpringCloud Config鎼缓

SuSE涓婅繍琛孧yCat锛堜簩锛夛細閰嶇疆鍗曠偣MyCat

TCP鍗忚鎺㈢┒锛堜笁锛夛細RTT銆佹粦鍔ㄧ獥鍙e拰闃诲澶勭悊

銆怬racle Database銆慜racle RAC锛堜節锛夛細绠$悊宸ュ叿--crsctl & srvctl

鏈哄櫒瀛︿範瀹炴垬锛?锛夛細鏀寔鍚戦噺鏈猴紙涓嬶級

銆學arframe鐑慨銆嶈繙鍙や箣琛€锛圱he Old Blood锛夛細Hotfix 26.0.5