not to display first two columns [message #246795] |
Fri, 22 June 2007 00:50 |
soujanya_srk
Messages: 111 Registered: November 2006 Location: HYDERABAD
|
Senior Member |
|
|
create table xx(id number(4),name varchar2(20);
insert into xx values(1,'aa');
insert into xx values(1,'bb');
insert into xx values(2,'cc');
insert into xx values(3,'gg');
insert into xx values(4,'uu');
i dont want to display the fist two rows of this table
so,
declare
cursor c1 is select name from xx where id=1 and rownum not in(1,2);
begin
dbms_output.put_line('begun');
for rec in c1 loop
dbms_output.put_line(rec.name);
end loop;
end;
but this is not working, how to make sure i dont retrieve
the first two rows of this table??
|
|
|
|
Re: not to display first two columns [message #246798 is a reply to message #246795] |
Fri, 22 June 2007 00:56 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
I have a basket full of apples.
Which apples in the basket are NOT the 1st two apples?
Your problem statement is nonsensical.
>i dont want to see the first two rows of the table
>not to display first two columns
Please clarify 1st 2 colunms or 1st 2 rows?
[Updated on: Fri, 22 June 2007 01:00] by Moderator Report message to a moderator
|
|
|
|
Re: not to display first two columns [message #246817 is a reply to message #246795] |
Fri, 22 June 2007 01:43 |
soujanya_srk
Messages: 111 Registered: November 2006 Location: HYDERABAD
|
Senior Member |
|
|
SQL> SET UNDERLINE ON
SQL> @my
Enter value for fi_shortname: SS
Enter value for fi_shortname: SS
Enter value for fi_shortname: SS
FI Name Customer Name User Name
--------------------------------------------
"INTFI73","GCUST13","CUSER1"
"INTFI73","GCUSTCORP1","CUSERSB1"
"INTFI73","CUST_CORP1","DUPUSER1"
"INTFI73","CUST_CORP2","DUPUSER2"
"INTFI73","GCUST12","CUSER1"
"INTFI73","GCUSTSB1","CUSERSB1"
"INTFI73","CUST_SB1","DUPUSER1"
"INTFI73","CUST_SB2","DUPUSER2"
i dont want to see the column headers and the underline
as i am saving this as a report...in another program
i am getting the data via a cursor (similare to the one i
showed above).in which a column has all this data
i dont want the first 2 rows of the "data", meaning the
col header and underline
|
|
|
|
|
|