在oracle执行存储过程出现: 在此select语句中缺少into子句
oracle的存储过程中不能直接select,必须要将结果放到变量中,即类似select count(*) into count1 from checkTmp这种写法。
直接写成select * from checkTmp order by expressID肯定会报错的,因为oracle不知道你要select干什么。
oracle中的存储过程里不能直接用select语句吗
不可以的,必须要使用select into
PLSQL程序块中是不可以直接使用select的你如果想使用结果集,可以使用游标!