统一SQL支持PLSQL【存储过程】解析和转换为LightDB的语句

官网介绍

LightDB官方文档:https://www.light-pg.com/downloadCate.html
统一SQL用户手册:https://www.light-pg.com/docs/LTSQL/current/index.html

功能介绍

LightDB统一SQL支持完成Oracle数据库的存储过程的解析和原样改写。

支持范围

PL/SQL块的执行部分,支持BEGIN、END、IF THEN分支,loop循环,数据类型变量及赋值(:=),ROLLBACK,COMMIT,RETURN等语法结构。

功能样例

Oracle源语句:

create or replace procedure power2(input in number, output out number) is begin output:=input*input; end power2;

原样解析和还原:

CREATE OR REPLACE PROCEDURE power2(input IN number,output OUT number) IS BEGIN output := input*input; END power2;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章