How can I get a count at the same time I am inserting into another table
I have a requirement where I have to find out the count(number of records inserted into another table) at the same time I insert into the table:
Like
I am copying records from table B to A, while doing this I have to find out how many records I've inserted since I need this count in subsequent steps
INSERT INTO A
SELECT * FROM B
how can I store the count into any variable while doing above statement
Please advice
No, Warren that doesn't work!
SQL> set serveroutput on
SQL> declare
2 vCtr number := 0;
3 begin
4 insert into emp2
5 select * from emp;
6
7 select count(*)
8 into vCtr
9 from emp2;
10
11 dbms_output.put_line('rows created '||to_char(vCtr));
12 end;
13 /
rows created 15
PL/SQL procedure successfully completed.
SQL> declare
2 vCtr number := 0;
3 begin
4 insert into emp2
5 select * from emp;
6
7 select count(*)
8 into vCtr
9 from emp2;
10
11 dbms_output.put_line('rows created '||to_char(vCtr));
12 end;
13 /
rows created 30
PL/SQL procedure successfully completed.
SQL>
Similar Messages
-
I live in a house with multiple iCloud users. When they try to turn on "Find my computer" they get the message that they will have to disable my "find my computer" setting in order to enable theirs. How can they all be enabled at the same time?
Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security
-
I have the original iPad and when I sync it with my macbook pro in iPhoto the faces key photo aren't the same on both devices, how can I get them to be the same as on the computer
Interesting observation. Thanks for sharing.
Did you have a technical support question? -
In Elements 7.0, how can I delete multiple photos at the same time?
In Adobe Photoshop Elements 7.0, how can I delete multiple photos at the same time? Please be a little specific so I can follow your instructions as I'm not real smart at computers; I'm an intermediate user. Thank you.
Shift-click the photos or Ctrl-click them to select them, then right-click one of them and choose Delete from Catalog. They will all go together.
-
My Apple ID and rescue email are reversed. How can I change them both at the same time
My Apple ID and rescue email are reversed. How can I change them both at the same time?
I'd already used this standard tool (exhaustively!), but for the problem encountered it operated in Catch 22 mode - you had to do two things but neither order was permitted. I did find an answer eventually, but am not sure what it was I did that solved it! Thanks, anyway.
-
On I-Mac, how can I close all tabs at the same time?
On I-Mac, how can I close all tabs at the same time?
I use Mozilla Firefox for internet.Not an Apple product, have you visited:
https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-qu ickly -
How can I visualize 2 documents at the same time
How can I visualize 2 documents at the same time?
thanksAdobe Reader on mobile devices allows to view ONE document at a time.
-
Im using Lion on a MacBook Pro 15in (just under two years old) and I would like to know if I can lock numerous photo files at the same time so I can make changes to them. At the moment when I select an entire folder to go through and make changes, ie rotate in Preview, I am told with each photo that I have to unlock it. I am going through photos I took of archival material and have nearly 5000 photos to adjust and make changes to. This small step is taking up a lot of time.
I realise there will probably be a common 'sense' answer to this but it alludes me at the moment so any help would be appreciated.
ThanksTry this: https://addons.mozilla.org/en-US/firefox/addon/fox-splitter/?src=ss
OR, open a second Firefox window (''Firefox button > New tab > New Window'' or ''Ctrl+N''), load the second site, resize windows side by side.
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update as necessary:
*Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
*Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
*'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
*'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
*Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox] -
How can I run other applications at the same time as downloading email
When I open my computer if I check mail on entourage first and there are 30+ messages I can not use other apps at the same time as the mail is downloading, is there a way to have email operating in the background. Curiously if I am using another application and a mail comes in , the first app runs with mail running in the background , Why is this not the case when Entourage is the first program running and it is downloading mail.
http://www.officeformac.com/ProductForums/Entourage/ Alternatively, don't launch it at login, launch it after logging in.
-
How can I get page 2 in the same format?
I have just completed the first sheet in Numbers, and I would like to know how to bring up successive sheets in the same format.
To get the first sheet, I went to:
Numbers
File
New from template chooser
Blank
Now I have filled that sheet and would like to continue with sheet 2.
I tried clicking on Sheet in the toolbar, but got a very small sheet, not full size.
Thanks for the help.Depending on how your margins are set and the height of your table rows, you will get some number of rows per page. Your only control of where the pages break is with those controls. Margin setting is a Sheet Property and can't be changed page by page, but if there's a particular row that you want to end a page with, just increase the height of that last row until the rows below pop to the next page.
If you have a Header Row, you can ask it to repeat at the top of each page, so you don't have to manually repeat the column headings.
Knowing how to easily change the dimensions of a table, in rows and columns, is amongst the basic stuff covered in the Numbers User Guide. You can get it from the Help Menu. A good read on a Winter's evening.
Jerry -
My song previews in the itunes store quit after about 20 seconds. How can I get the full time allowed?
Delete and redownload:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
How can I get Messages to show the correct time for read receipts?
Messages in Mountain Lion shows the wrong time for read receipts. For example, my iPad will show a message was read at 3:37 pm but if I open Messages on my MacBook, the read receipt shows the time that I opened the Messages app as opposed to the time the message was actually read. This is not too much of an issue if my iPad is handy, but really, shouldn't Messages on my MacBook be able to show the correct time the message was read? It syncs all the other infromation with Messages on iOs.
I should mention that if Messages is running on my MacBook when the recipient reads the message, then it does show the correct time the message was read. It's if Messages was not running and I re-launch it that the read receipt time gets mixed up.HI,
As far as I am aware Messages marks or time stamps an iMessage at the time of receipt rather then the time you got around to reading it.
I will admit that in most cases reading and receiving as the app opens will be near enough the same time in some conversations.
Adding Time Stamps to Chat is what iChat has always done particularly with AIM based Chats.
The "Sync" in Messages is "display on all devices" and after that each iMessages is dealth with separately on each device.
There is no syncing of deleting/dimssing an iMessages or having read it on another device.
8:58 PM Tuesday; April 16, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images." No, Seriously
Message was edited by: Ralph Johns (UK) -
How can I export several versions at the same time?
Greetings -
I'm looking for something that I may just be missing, and hoping someone here can point me in the right direction.
Basically, I'd like to be able to select an image in my library and export several versions at the same time. For example, I select a photo and export JPG, TIFF and PSD versions in one shot without having to run three separate export requests - essentially a batch action. I can't imagine that this isn't built in already - I'm just assuming that I'm missing something obvious.
Thanks in advance for any advice anyone might have.
John.Fwiw, I've not seen this requested before.
This kind of Export option is very typical, Kirby, when the rendering of the exported version will take a long time, for example for video or audio. Then you can share several formats at once, to render a version suitable for the web, for viewing on the computer, or the iPhone at the same time. That is really useful, if you render a movie at a full HD resolution and don't have to do it again for an iPhone/iPod version.
QuickTime 7 does this for the "File > Export for Web" option, for example. You can get three versions of your final movie at the same time.
And I just checked, the new iMovie Theater does this as well, when sharing a movie to the Theater:
When you add a movie, trailer, or clip to the Theater, iMovie creates versions of your movie tailored for local playback, playback on an iOS device, and streaming.
Come to think about it - exporting a webpage from Aperture will also export thumbnail sized images plus a larger version for downloading. -
How can I use two ports in the same time?
My application need one pc use two ports the same time.But when I open one port and my systerm is running the other port can't be opened.
I use the frame API in VC++6.0.
My OS is win2000 server;
The functions I used are ncOpenObject();Hi DickW
Thank you for your help!
I have tried the example.But the example shows how to connect one CAN network with two ports.
I want each port connect to the net can both read and write;
I want to apply the function like this:
1.config the port1 and port2
2,open port1 and port2
But after I open port1 or port2 the other port can't be opened;
After I open the second port it always returns negative.
In the codes I use CAN0 and CAN1 as the CAN objects.
Attachments:
twoport.zip 1184 KB -
1) I need to drag the same text on 100 pages at the same time to the same place. Is there a simultaneous way I can do this? the pdf file has 100 pages of a 4x 6 posta cards that contain addresses: one address per page, I need to select all addresses and at the same time move them to the same place within the postcard. I can select the text on one card (page) at a time and drag it to the desired place. The PROBLEM is that I need to do it at the same time on every page. otherwise it takes too long. PRODUCT IS ABOBE ACROBAT
This it not the kind of editing task that one should do in a PDF file. It is not meant to be edited in such a way.
You should try to get the original file used to create the PDF, edit it and then create a new PDF from it.
Maybe you are looking for
-
How do I get all my music to sync to my phone?
I am trying to sync a playlist of 104 songs to my iPhone, so I select the playlist under Music and Sync. However, on my iPhone, only 32 songs are synced. I tried restarting my iPhone (holding home and lock button), reinstalling iTunes, and unsycning
-
How can i see and cancel hidden files on a external HD?
How can I see and cancel hidden files on a external HD with macbook pro and Lion?
-
Same algorithm in function and procedure then which one will better?
Why pl sql function is better to computes a value instead of procedure? If I apply same algorithm in function and procedure then which one will perform better?
-
OT: formatting in this forum
I just wrote two post. In one of them, the line breaks was preserved, in the other everything went into a sigle line. WHY does it happen? What can I do for my line breaks never get lost?
-
Smart playlist long list of criteria extends off screen - help!
I subscribe to a lot of podcasts and use several smart playlists to group and organize them. When creating criteria for the smart playlist, sometimes the list extends off the bottom of the screen, and unlike the usual Mac interface, no scroll bar app