|
请问一下,以下的PL/SQL script, 哪里出了问题?
CREATE OR REPLACE procedure getPostcode (v_postcode IN OUT NUMBER,
v_suburb IN VARCHAR2, v_category IN VARCHAR2)
IS
BEGIN
SELECT dbp_postcodes.postcode
INTO v_postcode
FROM dbp_postcodes INNER JOIN Helens_data
ON dbp_postcodes.Locality = Helens_data.Suburb
WHERE dbp_postcodes.State = 'NSW'
AND suburb = v_suburb;
END getpostcode;
错误讯息如下:
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "KKKONG.GETPOSTCODE", line 8
[ Last edited by feipuppy on 3-5-2005 at 06:09 PM ] |
|