hanchilicious
Programmer
Hi,
I'm trying to run some pl/sql which is returning the above error.
I'm not much of an oracle developer, and I'm just trying to resolve this issue in our programmers absence because it's an live problem. The bulk of the code is essentially populating the ListingData table below, but I think it's the following which is causing the problem:
The problem occurs with or without the rownum line. I guess this happens because there is more than one row being returned, but how do I handle this to return multiple rows - or even just return one of a duplicate series of rows?
Please help if you can!
Handwringingly yours,
H
I'm trying to run some pl/sql which is returning the above error.
I'm not much of an oracle developer, and I'm just trying to resolve this issue in our programmers absence because it's an live problem. The bulk of the code is essentially populating the ListingData table below, but I think it's the following which is causing the problem:
Code:
IF vCount = 0 THEN
c_ResultSet := GetEmptyResultSet('');
ELSE
OPEN c_ResultSet FOR
SELECT House,
Type,
Title,
SecondTitle,
Channel,
ValidFromDate,
ValidToDate,
ValidFromTime,
ValidToTime,
ValidDays
FROM ListingData
-- WHERE rownum <= 1
ORDER BY 1;
END IF;
Please help if you can!
Handwringingly yours,
H