把insert作为动态SQL,然后拼上参数a,这样就可以了。v_sql := 'INSERT INTO abc SELECT * from def WHERE gh in (' || a || ')';然后执行动态SQL语句。