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

  • 关于我们
  • 免责声明