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) := 'insert into my_table(id, column_value) values (:P_ID, :P_VAL)';
  id number := 2;
  value varchar2(100) := 'Bonjour!';
begin
  execute immediate query_text using id, value;
end;
/
  • 更新動態 SQL 中的值
  • 使用動態 SQL 選擇值

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明