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

  • 关于我们
  • 免责声明