DECLARE );-- 定义一个字符串变量str BEGIN .. loop -- INSERT INTO FW_TEST(NAME) VALUES('bbb' + i);DECODE('1','','',DECODE('2','','',DECODE('3','','','2'||'3'))) NVL2('1',NVL2('2',NVL2('3','2'||'3',''),''),'') '))) AS str INTO str FROM dual;-- 把查询出来的值赋值给str sys.