17,086
社区成员
发帖
与我相关
我的任务
分享
insert into point
select machine_id||'/'||&point_type||'/'||'1' point_id ,
machine_id,
&point_type point_type,
1 point_interval,
status
from machine;
给你定义了一个变量 &point_type,你需要执行3次,分别输入你的值1,2,3。当然你也可以用其他方法,比如说子查询或者循环执行之类的。