官網介紹
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 function power(input1 number) return number is begin return input1*input1; end power;
原樣解析和還原:
CREATE OR REPLACE FUNCTION power(input1 number) RETURN number IS BEGIN RETURN input1*input1; END power;