473,383 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

forall operator

75
How can we use Forall operation for following progm ...
If we use for it takes times ..I wanted to use bulk bind for faster execution ,,
Can u plz suggest how and where to use forall operator in this following progm

Expand|Select|Wrap|Line Numbers
  1. declare
  2.     vl_c_event_ct   varchar2(1000);
  3.     vl_c_eventcd    varchar2(1000);
  4.     vl_c_class      Varchar2(1000);
  5.     Cursor c1 is select ACC_NUMBER, START_DATE ,END_DATE from am_test;
  6.  begin
  7.     for r1 in c1
  8.    loop
  9.        select sum( scs),evn_ID,TR_26
  10.         into vl_c_event_ct,vl_c_eventcd,vl_c_class from costt_test
  11.          where ACCOUNT_NUM in (select substr(acc_number,4,10) from am_test) and
  12.        to_char(CREATED_DTM,'ddmmyyyy') between (to_char(r1.START_DATE,'ddmmyyyy')) and(to_char(r1.END_DATE,'ddmmyyyy'))
  13.        group by EVENT_TYPE_ID,EVENT_ATTR_26 ;
  14.        dbms_output.put_line(vl_c_event_ct||' '||vl_c_eventcd||' '||vl_c_class);
  15.       insert into am_test2 values(vl_c_event_ct ,vl_c_eventcd ,vl_c_class  ,r1.ACC_NUMBER ,r1.START_DATE ,r1.END_DATE );
  16.   end loop ;
  17.  end;
  18.  
Nov 14 '07 #1
2 1540
amitpatel66
2,367 Expert 2GB
Orajit,

Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future.

MODERATOR
Nov 14 '07 #2
amitpatel66
2,367 Expert 2GB
Check here and here about BULK BIND and FORALL
Nov 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Paul Davis | last post by:
I'd like to overload 'comma' to define a concatenation operator for integer-like classes. I've got some first ideas, but I'd appreciate a sanity check. The concatenation operator needs to so...
1
by: joesoap | last post by:
Hi can anybody please tell me what is wrong with my ostream operator??? this is the output i get using the 3 attached files. this is the output after i run assignment2 -joesoap #include...
5
by: Jason | last post by:
Hello. I am trying to learn how operator overloading works so I wrote a simple class to help me practice. I understand the basic opertoar overload like + - / *, but when I try to overload more...
6
by: YUY0x7 | last post by:
Hi, I am having a bit of trouble with a specialization of operator<<. Here goes: class MyStream { }; template <typename T> MyStream& operator<<(MyStream& lhs, T const &)
15
by: Jens.Toerring | last post by:
Hi, I have a possibly rather stupid question about the order of evaluation in a statement like this: result = foo( x ) - bar( y ); How can I make 100% sure that foo(x) is evaluated before...
2
by: Tor Hovland | last post by:
I have the following procedure: TYPE testarray is table of int index by binary_integer; PROCEDURE testfast(par1 in testarray) is begin FORALL i IN par1.FIRST..par1.LAST insert into dummy...
13
by: Jake Barnes | last post by:
I saw this sentence: "The last stage of variable instantiation is to create named properties of the Variable object that correspond with all the local variables declared within the function." ...
5
by: raylopez99 | last post by:
I need an example of a managed overloaded assignment operator for a reference class, so I can equate two classes A1 and A2, say called ARefClass, in this manner: A1=A2;. For some strange reason...
3
by: y-man | last post by:
Hi, I am trying to get an overloaded operator to work inside the class it works on. The situation is something like this: main.cc: #include "object.hh" #include "somefile.hh" object obj,...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.