EXECUTE IMMEDIATE dynamic sql in procedure
EXECUTE IMMEDIATE dynamic sql to alter session
SQL> DECLARE
2 lv_sql_txt VARCHAR2(200);
3 BEGIN
4 EXECUTE IMMEDIATE 'ALTER SESSION SET SQL_TRACE=TRUE';
5 lv_sql_txt := 'ALTER SESSION SET SORT_AREA_SIZE = 1000000';
6 EXECUTE IMMEDIATE lv_sql_txt;
7 END;
8 /
PL/SQL procedure successfully completed.
SQL> DECLARE
2 lv_sql_txt VARCHAR2(200);
3 BEGIN
4 EXECUTE IMMEDIATE 'ALTER SESSION SET SQL_TRACE=TRUE';
5 lv_sql_txt := 'ALTER SESSION SET SORT_AREA_SIZE = 1000000';
6 EXECUTE IMMEDIATE lv_sql_txt;
7 END;
8 /
PL/SQL procedure successfully completed.
參考連線:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9252210/viewspace-677301/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 動態 SQL、EXECUTE IMMEDIATE、using、into、returningSQL
- EXECUTE IMMEDIATE動態SQL的使用總結SQL
- 複習execute immediate動態sql語法SQL
- execute immediate 語法小結
- execute immediate的簡單用法(oracle)Oracle
- EXECUTE IMMEDIATE 呼叫動態過程
- EXECUTE IMMEDIATE 儲存過程中 許可權不足及EXECUTE IMMEDIATE的除錯避坑儲存過程除錯
- execute shell script from stored procedure
- PLSQL Language Referenc-PL/SQL動態SQL-本地動態SQL(EXECUTE IMMEDIATE語句)SQL
- oracle execute immediate動態sql組合執行comment小記OracleSQL
- 儲存過程中慎用 execute immediate儲存過程
- Building a Dynamic Oracle ETL ProcedureUIOracle
- Oracle動態執行語句(Execute Immediate)Oracle
- PL/SQL 中 execute immediate,select 語句沒有into 執行未報錯SQL
- Oracle EXECUTE IMMEDIATE語句裡面的引號處理Oracle
- 儲存過程執行EXECUTE IMMEDIATE沒反應儲存過程
- sql primary key procedureSQL
- why use dynamic SQL?SQL
- 在儲存過程中使用EXECUTE IMMEDIATE報許可權問題儲存過程
- SQL can execute in wrong SchemaSQL
- 分頁procedure (SQL Server)SQLServer
- SQL 建立儲存過程PROCEDURESQL儲存過程
- 10g及以前版本execute immediate不支援clob型別,11g已經支援型別
- PL/SQL 05 儲存過程 procedureSQL儲存過程
- DB2 PL/SQL Example: Sleep ProcedureDB2SQL
- 在SQL Developer中Debug一個procedureSQLDeveloper
- 一個關於支付的SQL-ProcedureSQL
- Flink Table/SQL API 規劃 —— Dynamic TableSQLAPI
- Last_SQL_Error: Could not execute Update_rows eventASTSQLError
- SQL error 2812: Could not find stored procedure.docSQLError
- Can one execute an operating system command from PL/SQL?SQL
- MySQL: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1MySql
- rs.open與connection.execute(sql)的區別SQL
- oracle procedure plsql 動態sql之動態傳遞表OracleSQL
- The Execute Disable/No Execute CPU feature is not enabled for this machineMac
- Procedure加密加密
- zt_Resolving Shutdown Immediate Hang Situations_shutdown immediate關庫慢
- VMware: ESXi requires the Execute Disable/No Execute CPU feature to be enabledUI