cursor cursor2 is select kmh,kmye from a_kmyeb;你这是定义变量。请放在cursor cursor1 is select zbh,zbgs from a_zbgsb;后
cursor2 没有定义你把cursor2写在字符串里面吧然后执行 execute immediat strSQL;