【发布时间】:2019-03-06 09:24:18
【问题描述】:
我经常在 datagrip 中使用 Ctrl - Shift - F10 执行此语句。
有什么方法可以创建包含变量的 SQL 或 pl/SQL 语句集,并使用 DataGrip 执行文件。
Datagrip 的变量处理不是很好 - 或者我遗漏了一些东西。
// somehow set $(jobName?) to a value in the file and re-use it.
update t_msg_log l
set l.job_status = 'FinishedSuccess'
where l.source_detail = $(jobName?)
and created =
(select max(created) from t_msg_log li where li.source_detail = l.source_detail);
【问题讨论】:
标签: datagrip