Jump to content

Need Help In Stored Procedure..


Recommended Posts

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

  • spidereddy

    11

  • ravula

    5

  • sitaraZahir

    5

  • idiBeZaWaDa

    4

Top Posters In This Topic

Posted

If its oracle use SQL%rowcount

 

 

dude...if you there...need some more info..

Posted

sorry my bad.....no idea about what you are talking about

athanu stored proc gurinchi adigadu kada.....and he wants to do the count and store it in another table

 

 

konchem elaborate about the concept you just mentioned pls

lyt tsco bhayya..:)

Posted

For execution time ... Declare 3 variables like vexec, vstart and vend, then before the main sp execution get the system time using vstart=dbms_utility.get_time;
Then after the main procedure is done, before exiting get the system time into vend variable
Calculate the exec time vexec=vend-vstart)
Then print it using dbms_output.put_line(vexec)

Posted

For execution time ... Declare 3 variables like vexec, vstart and vend, then before the main sp execution get the system time using vstart=dbms_utility.get_time;
Then after the main procedure is done, before exiting get the system time into vend variable
Calculate the exec time vexec=vend-vstart)
Then print it using dbms_output.put_line(vexec)

 

TS adigina first question?

how to save the values into a table?

btw i am not into oracle....only ltt'ing for him

Posted

TS adigina first question?
how to save the values into a table?
btw i am not into oracle....only ltt'ing for him


Emundi aa vexec variable value ni insert statement tho table lo pettadame
Posted

I took pls_interger as datatype...
Got result as some 5000..adhi seconds oh milli seconds oh ardam aithale..

Posted

For the guys who want to find the solution...

It gave me hsecs...hundredth of secs..so i divided by 100 and inserted into another table..
As suggested by cheguevera..i took 3 vars..thanks again..
Also i declared 3 variables for getting record count..1 for each update and 1 for getting total count of records updated and inserted that value to another table..

×
×
  • Create New...