How to break records
Hi,
I have a table which got around 1850370 records. I need to pull these records into excel sheet from toad
select * from schemaname.tablename --count is 1850370 .
I need to fetch the data into excel sheet. How can i do that. How can I break the records.
Nimish Garg wrote:
may be, but i never faced such problem.hmm...
CREATE TABLE tab1 AS
SELECT LEVEL col1,
'A' col2
FROM dual
CONNECT BY LEVEL <= 100;
Table created.
SELECT *
FROM (SELECT A.*, rownum RN
FROM tab1 A)
WHERE RN <= 5;
COL1 C RN
1 A 1
2 A 2
3 A 3
4 A 4
5 A 5
5 rows selected.
DELETE FROM tab1 WHERE col1 = 1;
1 row deleted.
COMMIT;
Commit complete.
INSERT INTO tab1 (col1, col2) VALUES(1,'A');
1 row created.
COMMIT;
Commit complete.
SELECT *
FROM (SELECT A.*, rownum RN
FROM tab1 A)
WHERE RN <= 5;
COL1 C RN
2 A 1
3 A 2
4 A 3
5 A 4
6 A 5
5 rows selected.Cheers
Ben
Similar Messages
-
How to break up a voice recording into navigable "chapters".
I am trying to make a voice recording (a Podcast on GarageBand) that I can then break up into "chapters". I want to be able to use the track button on a CD player or an iPod to navigate these chapters.
I have already made a Podcast recording in GB, but am unable to figure out how to break it up into "chapters" (with names that will appear on an iPod or CD player). Three questions:
1) Is a podcast in GB the best way to accomplish this? and
2) Should I break it up into "chapters" in GB or in iTunes? and
3) How do I do it?
Help me please!Sure! GarageBand is great for recording and combining tracks, but SoundStudio, for me at least, is more intuitive when I'm manipulating a single track. For instance, SoundStudio lets you mark various points in your audio track, then split and save them as individual files via a single menu command. It's like having a single audio track in GarageBand expanded to fill the whole application window, and the suite of tools is aimed at manipulating that single track, not mixing multiple tracks together.
But the end result will be exactly the same — it's just a little easier for me to get there with SoundStudio. Unfortunately, SoundStudio is quite expensive (it came free on my Mac, but the latest version costs $80), so if you only need to split one audio file GarageBand will work just fine. -
i have 100 records can anybody tell me how i display records 10 at atime in jsp & by clicking the next button another 10 records displays in the same jsp. How i can do that thing.
You have to implement a page breake yourself.
Simple scenario would be to store a page number into a session:
session.setAttribute("page", selectedPage)
every time user clicks on a next page link
When displaying the record read the page and display only those which should be on the page
Integer selectedPage = session.getAttribute("page")
if (selectedPage == null) selectedPage = 1;
//display code goes here -
How to lock record in a remote database ???
Hi All!
How to lock record in a remote table ??? Is it possible to lock by using the RPC ??? What are the options available ??
thanks
Sanjeeb Bose
HCL Infosystems Ltd
Kolkata IndiaDBLinks may be one option...
--Shirish -
How to add records or how to maintain list in stored Procedure
Hi,
I am facing an issue in the addition of record in the type
create or replace
TYPE "PROD_SEARCH_COUNT_TBL" AS TABLE OF PROD_SEARCH_COUNT_OBJ;
create or replace
TYPE "PROD_SEARCH_COUNT_OBJ" AS OBJECT
( /* TODO enter attribute and method declarations here */
V_Name Varchar2(500 Byte),
v_Value Varchar2(500 Byte),
v_count Number
I want to add records to the type I tried following way
prod_wcf_rec PROD_SEARCH_COUNT_TBL;
SELECT PROD_SEARCH_COUNT_OBJ('Name1','Value1',1) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
SELECT PROD_SEARCH_COUNT_OBJ('Name2','Value2',2) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
SELECT PROD_SEARCH_COUNT_OBJ('Name3','Value3',3) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
SELECT PROD_SEARCH_COUNT_OBJ('Name4','Value4',4) BULK COLLECT INTO PROD_WCF_REC FROM DUAL;
DBMS_OUTPUT.PUT_LINE ('-----------------------------Looping----------------------------');
FOR i in 1 .. prod_wcf_rec.COUNT
LOOP
DBMS_OUTPUT.PUT_LINE (prod_wcf_rec(i).V_Name||' - '||prod_wcf_rec(i).v_Value||' - '||prod_wcf_rec(i).v_count);
END LOOP;
DBMS_OUTPUT.PUT_LINE ('-----------------------------Looping----------------------------');
In printing I am getting last records only .So is there any way to add records to PROD_SEARCH_COUNT_TBL
How to add records or how to maintain list in stored ProcedureEvery time you BULK COLLECT into a collection type the value is overwirtten. So you need to try something like this.
SQL> create or replace type prod_search_count_obj as object(v_name varchar2(500 byte), v_value varchar2(500 byte), v_count number)
2 /
Type created.
SQL> create or replace type prod_search_count_tbl as table of prod_search_count_obj
2 /
Type created.
SQL> declare
2 prod_wcf_rec prod_search_count_tbl;
3 begin
4 select obj_val
5 bulk collect into prod_wcf_rec
6 from (
7 select prod_search_count_obj('name1','value1',1) obj_val from dual
8 union all
9 select prod_search_count_obj('name2','value2',2) from dual
10 union all
11 select prod_search_count_obj('name3','value3',3) from dual
12 union all
13 select prod_search_count_obj('name4','value4',4) from dual
14 );
15
16 dbms_output.put_line ('-----------------------------looping----------------------------');
17 for i in 1 .. prod_wcf_rec.count
18 loop
19 dbms_output.put_line (prod_wcf_rec(i).v_name||' - '||prod_wcf_rec(i).v_value||' - '||prod_wcf_rec(i).v_count);
20 end loop;
21 dbms_output.put_line ('-----------------------------looping----------------------------');
22 end;
23 /
-----------------------------looping----------------------------
name1 - value1 - 1
name2 - value2 - 2
name3 - value3 - 3
name4 - value4 - 4
-----------------------------looping----------------------------
PL/SQL procedure successfully completed.
SQL> -
How Do I record My Business Skype-to-Phone Calls?
I've been using 3rd party recording devices for a long time, and suddenly my audio files are just now going crazy. When I try recording we are speaking over each other on the recordings. I've tried downloading almost all the recommended 3rd party recording devices listed here https://support.skype.com/en/faq/FA12395/how-can-i-record-my-skype-calls but nothing is working properly.
Callnote, MP3 Skype Recorder, iRecorder, iFree Skype Recorder, G-Recorder and a few others are just not working.
Is anyone successfully recording their audio from skype to phone conversations? Please help. I'm loosing money and need to resolve this immediatly.
Thank you,
Ashleyashleystamatino wrote:
I've been using 3rd party recording devices for a long time, and suddenly my audio files are just now going crazy. When I try recording we are speaking over each other on the recordings. I've tried downloading almost all the recommended 3rd party recording devices listed here https://support.skype.com/en/faq/FA12395/how-can-i-record-my-skype-calls but nothing is working properly.
Callnote, MP3 Skype Recorder, iRecorder, iFree Skype Recorder, G-Recorder and a few others are just not working.
Is anyone successfully recording their audio from skype to phone conversations? Please help. I'm loosing money and need to resolve this immediatly.
Thank you,
Ashley
Hi Ashley,
Did you manage to get one that works in the end? -
How do I record a keynote slideshow with an attached music already? I trid to export it through Quicktime but the final result is different from the original keynote presentation. What I mean is that the slide transitions are slow that the musci finishes first before the slide presentation.
Keynote: Exporting a presentation from Keynote to iMovie
http://support.apple.com/kb/HT2655 -
How can I record an audio sound and convert it to a ringtone?
How can I record an audio sound and convert it to a ringtone?
Record your voice using iPhone (for ringtone only 35 secs or under are valid), sync iPhone with iTunes.
In iTunes the recorded voice is listed under Music as some_numbers.m4a.
Right click on the item and choose Create AAC version.
Drag the converted voice onto the desktop.
Delete the voice copy in iTunes. (important step)
On desktop, rename the some_number.m4a to something_more_intelligent.m4r
Drag it back to iTunes and you will find it under Tones.
Now select it (for sync) and connect your iPhone, do a sync.
If everything works out, it will be in Settings > Sounds > Ringtone.
Now choose a contact you want to assign this ringtone, tap Edit and add the ringtone.
Hope this helps. -
How can I record an audio file directly from a digital recording device directly to the iMac?
How can I record audio directly to my iMac from a digital recoding device?
What digital recording device?
-
How to get record control in sony ericsson p1i.
How to get record control in sony ericsson p1i....
does jsr234 helps??I'm not sure it is possible to get the PL/SQL record type through JDBC. Please try to access this procedure through JDBC to see if it is possible.
You may need to convert the record type, to an object-type, i.e. wrap the procedure in another procedure that converts the record type. You could also just wrap the procedure in another that expands the record values into individual output parameters. -
How to display records into a non table base block..
Hi,
Can anybody help me how to display records into a non table base block....
Find below is my coding but it only display the last record in the first line
in the block.
PROCEDURE CREATE_CARTON_QUESTION IS
CURSOR car_c IS
select /*+ rule */ question_id, question_description
from WHOP.QADB_QUESTIONS
where question_category = 'Carton'
and question_active_flag = 'Y';
v_found VARCHAR2(10);
v_status boolean;
v_error varchar2(150);
v_count number;
car_r car_c%rowtype;
begin
begin
select count(*) into v_count
from WHOP.QADB_QUESTIONS
where question_category = 'Carton'
and question_active_flag = 'Y';
exception
when no_data_found then
v_count := 0;
end;
if v_count > 0 then
for car_r in car_c loop
---populating carton questions
:la_carton.carton_question_id := car_r.question_id;
:la_carton.carton_question_answer := 'N';
:la_carton.carton_error_details := null;
:la_carton.attribute2 := car_r.question_description;
end loop;
end if;
end;
Thanks in advance.
Regards,
JunHi SNatapov,
Thanks for you reply but still I get this error...
FRM-40737 Illegal restricted procedure GO_BLOCK in WHEN-VALIDATE-ITEM trigger.
Please note that I call that program unit in the last field of my control block inside when-validate-item trigger the questions should be display in la_carton block which is my non-base table block.
Find below is the code....
begin
go_block('la_carton');
first_record;
for car_r in car_c loop
---populating carton questions
:la_carton.carton_question_id := car_r.question_id;
:la_carton.carton_question_answer := 'N';
:la_carton.carton_error_details := null;
:la_carton.attribute2 := car_r.question_description;
next_record;
end loop;
end;
Hoping you can help me this problem...
Thanks in advance.
Regards,
Jun -
How to select records in ALV using FM
Hi guys,
How to select records in ALV using FM. Not the OO method. Thx in advance!
KunhI
by using REUSE_ALV_FIELDCATALOUG_MERGE. Iys fill field catalouge table as per internal table description. Then use REUSE_ALV_GRID_DISPLAY for display ALV REPORT.
**Please reward suitable points***
With Regards
Navin Khedikar -
How to delete records from dynamic internal table.
Hi Experts,
Need urgent help!!!
Issue is with Dynamic internal tables.
Below is code written by me :
FORM select_query USING Lw_tabnam
TYPE t682i-kotabnr.
DATA : lw_line TYPE REF TO data,
lw_line1 TYPE REF TO data.
CREATE DATA Lw_line TYPE (lw_TABNAM).
ASSIGN Lw_line->* TO <WA_tbl>.
CREATE DATA LW_LINE TYPE STANDARD TABLE OF (Lw_tabnam)
WITH NON-UNIQUE DEFAULT KEY.
ASSIGN Lw_line->* TO <TBL>.
SELECT * FROM (Lw_tabnam)
INTO CORRESPONDING FIELDS OF TABLE <TBL>
WHERE (t_keys).
Endform.
code is working fine.
here even the table name and where condition are dynamic,everything is fine upto this point.
Now i have to delete some record from <TBL> based on some conditons.
for ex : ( here lc_fieldname is KUNNR)
loop at t_kunnr.
lw_tabix = sy-tabix.
Read table <tbl>
with key (lc_fieldname) = t_kunnr-kunnr ASSIGNING <wa_tbl>.
If sy-subrc = 0.
*Delete
delete <tbl> from <wa_tbl>
delete <tbl> index lw_tabix.
Endif.
Endloop.
The above delete statement doesn't work ,even we can't use index as it gives a syntax error " something related to "index is not allowed in standard table or hash table.
Can you help me ab't how to delete records in Dynamic internal table?
Other option that i am thinking of is to create a static table of type dynamic table.
means, data itab type standard table of <tbl> .I know the syntax is wrong ,however is there any way to do this?
Thanks in advance ,
If you have any suggestion ab't this then do let me know.
bye,
Gaurav.Hi
I wrote this code and it works fine:
DATA LW_TABNAM(10) VALUE 'LFA1'.
DATA : LW_LINES TYPE REF TO DATA,
LW_LINE TYPE REF TO DATA.
FIELD-SYMBOLS: <TABLE> TYPE TABLE,
<WA> TYPE ANY.
CREATE DATA LW_LINES TYPE TABLE OF (LW_TABNAM)
WITH NON-UNIQUE DEFAULT KEY.
ASSIGN LW_LINES->* TO <TABLE>.
CREATE DATA LW_LINE TYPE (LW_TABNAM).
ASSIGN LW_LINE->* TO <WA>.
DO 10 TIMES.
APPEND INITIAL LINE TO <TABLE>.
ENDDO.
SY-TABIX = 4.
DELETE <TABLE> INDEX SY-TABIX.
WRITE SY-SUBRC.
I hope it help you
Max -
How to search records in a standard table with * ?
Hi everyone,
Can anyone tell me how to search records in a standard table with * ?
That is, in screen if user type * abc * for searching the records in which the field MC_STEXT contains 'abc'. What the code should be? How to complete the code below?
SELECT SINGLE objid FROM p1000 INTO p1000-objid,
WHERE MC_STEXT = ? .
Thanks!Hi
There are several way to do that, probably just as some guys wrote the easier way is to use LIKE in WHERE condition and the sign % instead of *:
V_STRING = '%ABC%'.
SELECT SINGLE objid FROM p1000 INTO p1000-objid,
WHERE MC_STEXT LIKE V_STRING.
U can also use a range (just like select-options):
RANGES: R_MC FOR P1000-MC_STEXT.
R_MC-LOW = 'ABC'.
R_MC(3) = 'ICP'.
APPEND R_MC.
SELECT SINGLE objid FROM p1000 INTO p1000-objid,
WHERE MC_STEXT IN R_MC.
Max -
How to append records in a file, through file adapter.
Hi All,
How to append records in a file, through file adapter.
I have to read data from database and need to append all records in a file.
Thanks in Advance.Hi,
I think you have a while loop to hit the DB in your Process (As you said you have to fetch data from DB 10 times if 1000 rec are there)
First sopy your DB O/P to one var
and from second time append to previous data.(Otherwise you can directly use append from starting instead of copy and append)
When loop completes you can transform to File adapter Var.
Otherwise you can configure yourFileadapter such that it will aapend current records to previous records.
You can use 'Append= true' in your file adapter wsdl.
It will append previous records to current records in the same file.
Regards
PavanKumar.M
Maybe you are looking for
-
hi everyone, can i access the sap r/3 tables directly without rfc ..... any possibility is there means plz send me reply........ present i am doing bapi via jco using RFMs......... with regards,' satish
-
How can I send a photo as an attachment only and not in the body of the email?
-
I am developing an application using Application Builder and successfully created a Bar Chart using "cube view chart bean" and NetCharts. However, I have some problem when creating a Pie Chart. I don't know how to set the SliceData parameter. Is it s
-
Firefox is my default browser. After the recent update I have found that when visiting YouTube the videos are unable to load properly. I can hear them, but the images do not load. Furthermore, the interface freezes, so I can see the video controls an
-
Pretty much as title, at tghe moment I don't have the money to flat out buy a macbook pro, so financing is the only way to do it at the moment. If after starting the finincing I gather the money to pay off the rest of what I owe, can I do that?