logo
  • 教程列表
  • SO官方文檔
  • 動態 SQL
    • 使用動態 SQL 選擇值
    • 在動態 SQL 中插入值
    • 更新動態 SQL 中的值
    • 執行 DDL 語句
    • 執行匿名阻止
  1. StackOverflow 文件
  2. Oracle Database 教程
  3. 動態 SQL
  4. 更新動態 SQL 中的值

更新動態 SQL 中的值

Created: November-22, 2018

讓我們從第一個例子更新表:

declare
  query_text varchar2(1000) := 'update my_table set column_value = :P_VAL where id = :P_ID';
  id number := 2;
  value varchar2(100) := 'Bonjour le monde!';
begin
  execute immediate query_text using value, id;
end;
/
  • 執行 DDL 語句
  • 在動態 SQL 中插入值

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明