------解决方案-------------------- 我的异常网推荐解决方案:oracle存储过程,http://www.aiyiweb.com/oracle-develop/177537.html ------解决方案-------------------- procedure有参数定义啊!! 小例子: create or replace procedure java_run_cmd(vv in varchar2) as language java name 'JavaRunCmd.main(java.lang.String[])'; /
CREATE OR REPLACE PROCEDURE PROC_HR_ISNEWUSER( handphone in varchar2,user_count OUT number) AS
BEGIN
SELECT count(1) into user_count
FROM HR_USER
WHERE mobile=handphone
and status<>9;
END PROC_HR_ISNEWUSER;
--执行
EXECUTE PROC_HR_ISNEWUSER 参数值
------解决方案-------------------- 可以考虑用游标做参数传递值. FYI hyrongg's comment: http://topic.csdn.net/u/20080930/10/ed578aa0-1019-436c-b33a-10d2f497587a.html
------解决方案-------------------- 我也正在为这个问题发愁呢
------解决方案-------------------- select 出来 然后cursor遍历,fetch into @declare