Using CONNECT BY LEVEL with For Loop Doesn't Work
The procedure listed below inserts only one record in table whereas i need 10 records to be inserted in table.
this is just a test procedure..
CREATE OR REPLACE PROCEDURE P_TEST
AS
BEGIN
FOR I IN (SELECT LEVEL num FROM dual CONNECT BY LEVEL <= 10)
LOOP
INSERT INTO TEMP_VMS VALUES(I.num);
END LOOP;
END;
END;
/
Salim Chelabi wrote:
Or with 9ir2
INSERT INTO TEMP_VMS
SELECT COLUMN_VALUE
FROM TABLE (SYS.dbms_debug_vc2coll (24, 34, 25));
SELECT *
FROM TABLE (SYS.dbms_debug_vc2coll (24, 34, 25));
COLUMN_VALUE
24
34
25
3 rows selected.
http://laurentschneider.com/wordpress/2007/12/predefined-collections.html
That doesn't split strings...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'a,b,c,d,e' str from dual)
2 --
3 SELECT *
4* FROM t, TABLE (SYS.dbms_debug_vc2coll (t.str))
SQL> /
STR
COLUMN_VALUE
a,b,c,d,e
a,b,c,d,e... it only defines a table of values
Similar Messages
-
Java - sleep in a for loop doesn't work (as desired)
Hey all,
I'm trying to get a draw animation when the mouse is released (after dragging an object to a set area on the screen) - hence I'm trying to do this via a for loop with a small sleep() delay. However it isn't working. The delay is there, but nothing changes until the end of the for loop and then you only see the final repaint() [i.e. instead of each iteration in the for loop]:
// This program is concerned with this and the mouseDragged methods
public void mouseReleased(MouseEvent e)
for( int c = 0; c < xButton.length; c++)
if( xButton[c] >= xRandWeight && xButton[c] <= (xRandWeight+50) && yButton[c] >= yRandWeight && yButton[c] <= (yRandWeight+50) )
// Have an animation for the scales re-adjusting
if( c == 0 )
currWeight = (int)(scales.getWeight2());
desiredWeight = Integer.parseInt(b1.getLabel());
if( desiredWeight >= currWeight )
// More efficient than putting this subtraction straight into for loop
difference = desiredWeight - currWeight;
for( int count = 1 ; count <= difference ; count++ )
scales.setWeight2(currWeight+count);
repaint();
try
Thread.currentThread().sleep(100);
catch (InterruptedException in)
in.printStackTrace();
else
difference = currWeight - desiredWeight;
for( int count = 1 ; count <= difference ; count++ )
scales.setWeight2(currWeight-count);
repaint();
}Any ideas on how to fix this/meet the goal would be greatly appreciated :)
Thanks,
Tristan Perry
Edited by: TristanPerry on Nov 16, 2008 12:36 PMMy program isn't being written in SWINGFirst, it's Swing, not SWING. It's not an acronym.
Perhaps you would like to tell us which windowing toolkit you are using, so that you can get better responses. Or is that a closely guarded secret? <sarcasm/>
I'm very new to JavaSo ditch the GUI stuff and get a foundation first.
db -
I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. So when I want to download apps I have to sign in with apple id but I can't so I made a new one, However I can't seem to be able to delete the old one. What do I do?
You can't merge Apple IDs. You also can't cancel (delete) and existing ID, you can only choose to stop using it.
If your old ID was compromised and you can no longer access it, you'll have to contact Apple for assistance. Go to https://expresslane.apple.com ; click 'See all products and services' at the bottom of the page. In the next page click 'More Products and Services, then 'Apple ID'. In the next page select 'Other Apple ID Topics' then then 'Apple ID account Security’. -
I am trying to "personalize" my cs2 software online download with the serial number from my original boxed cd set and it didn't work. I tried using the download serial number and that doesn't work either. Need help!
I understand that you have also used the download link & serial number from Adobe - CS2 Downloads, if still the CS2 is not working, then please refer to the system requirement for e.g System requirements | Photoshop
The issue can be that the present operating system might not be compatible with the CS2.
Regards
Rajshree -
Help on changing array elements with For loop
Hi,
I'm wondering if anyone can help me with this problem. I'd like to be able to modify elements of an array with For loop. In the attached VI, my goal is to have an array of [0 1 2 3 4 5], but instead what I've got is [2 2 2 2 4 5]. I initialized the array with a value of 2 to help me identify which elements are changing. Can anyone help me pointing where my mistake is? Thanks.
Peter
Attachments:
Array test.vi 19 KBIt's a classic issue for LV newbies. In this case you HAVE to use a
shift register otherwise the modifications of previous cicles are lost.
It's all easier than it's seems, see attached vi.
bye,
manga
Attachments:
Array test 2.vi 19 KB -
How to use the select statement in for loop
Hi All,
my question is can we use select statement in for loop like as follows .
for key in select key from one_table.
when i am using this am getting an error like Found select invalid i identifier
how to make use of select statement in for loop
please suggest me .
Thanks
SreeSQL>set serveroutput on;
SQL> DECLARE
BEGIN
FOR Cur_Rec IN (SELECT dname FROM dept) LOOP
DBMS_OUTPUT.PUT_LINE(Cur_Rec.dname);
END LOOP;
END;
SQL>
ACCOUNTING
RESEARCH
SALES
OPERATIONSAs per your requirement always filter the Query beforehand
Like
FOR Cur_Rec IN (SELECT key FROM <table> WHERE key=1) LOOP
END LOOP;Edited by: Lokanath Giri on १ दिसंबर, २०११ ३:५६ अपराह्न -
Textvariable with replacement path for 0CALMONTH doesn't work ...
Hello expert,
we have done release upgrade BW 7.01 -> BW 7.3 SPS 04. While checking queries I found out that textvariables with replacementpath for 0CALMONTH doesn't work anymore. In the report I only see the variable name like ZVARXYZ01 but want to see something like 'JAN 2011'.
As far as I understand 0CALMONTH don't need a texttable. Texts can be found in table T247. I checked the table and all values looks fine.
Any Idea where the problem is or how I can analyze it?
Thank you in advance,
PeterHi Peter
Please check this link, especially this note for text variable problems after upgrade to 7.3
Let us know if it helps.
Think of giving points.
Regards
PC -
Voice command for Contacts doesn't work after a re...
Voice command for Contacts doesn't work after a reboot or a contacts restore.
Steps to reproduce:
1. Backup contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Back up now.
2. Edit/save a contact, press and hold the call button, speak contacts name. The voice recognition works fine.
3. Restore contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Restore.
4. Reboot phone when prompted.
5. Press and hold the call button, speak contacts name. The voice recognition does not work.
Work around:
Edit and save each contact.
Additional Information:
Social integration with contacts also does not work after a reboot. The facebook icon and "See what xxx is up to on Facebook" is not displayed. The same work around "Edit and save each contact" also applies. This occurs using the Nokia N8 and Nokia 808 Pureview.Nancy2015 wrote:
I have my phone paired with my car, I can do everything except it does not recognize any of my contact names. If I try say a contact name, it says "not recognized" but if I say the contacts phone number, the name pops up onthe display in my car.
Has anyone had this issue, is there a setting I am missing in my phone?
Hello,
This is not necessarily and issue with the phone. It could also be an issue with the car`s bluetooth software that is only limited to some functions like reading your contacts list, last calls, missed calls, etc. which is most likely the basic 2.0 version.
The Z30 has the 4.0 version that has a lot more communication capability but if the car`s bluetooth its a lower version, then you will not be able to take full advantage of it unless you upgrade the bluetooth software in your car. Call your dealer and inquire about the bluetooth software upgrade in your car -
Quicktime for windows doesn't work, wont let me uninstall or update.Help!
Quicktime for windows doesn't work, won't let me uninstall (tells me fatal errro) or update (tells me it encountered an error on installation). Help!I am running Windows XP on an Intel pentium PC. Any ideas? Dvora
When you get this fatal error uninstalling, try a full removal of iTunes and related programs with an installer clean up of any that do not uninstall cleanly:
Here is a method:
Download a fresh copy of iTunes and the stand alone version of Quicktime (the one without iTunes)
http://www.apple.com/quicktime/download/win.html
http://www.apple.com/itunes/download/
Download and install Microsoft Installer cleanup utility, there are instructions on the page as well as the download. Note that what you download is the installer not the program – you have to run it to install the program.
To run the program – All Programs>>Windows Install Cleanup
http://support.microsoft.com/kb/290301/
Now use the following method to remove iTunes and its components:
XP
http://support.apple.com/kb/HT1925
Vista
http://support.apple.com/kb/HT1923
*If you hit a problem with one of the uninstalls don't worry*, carry on with the deleting of files and folders as directed in the method.
When you get to deleting Quicktime files in the system32 folder as advised in the method, you can delete any file or folder with Quicktime in the name.
Restart your PC.
Run the Microsoft Installer Cleanup Utility. (Start > All Programs > Windows Install Clean Up)
Remove any references you find to the programs you removed - strictly speaking you only need to worry about those programs where the uninstall failed.
If you don’t see an entry for one of the programs that did not uninstall, look out for blank entries or numeric entries that look like version numbers e.g. 7.x for Quicktime or 1.x for Bonjour.
restart your PC
Install the stand alone Quicktime and check that it works.
If it does, install iTunes. -
Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?
Hello lila54,
It sounds like your Wi-Fi network is working if your desktop works with it, we just need to get the Wi-Fi on your iPhone and iPad connected to it. I found a couple of resources to help with not being able to connect to Wi-Fi on an iOS device.
I recommend following the steps in this tutorial first (the steps should work on the iPhone and iPad):
Join a network
http://www.apple.com/support/iphone/assistant/wifi/
If you are still having trouble connecting to Wi-Fi, follow the steps in this article (you can skip any steps you have already taken):
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/ts1398
Thank you for posting in the Apple Support Communities.
Best,
Sheila M. -
I have an Iphone 3GS and the app for Facebook doesn't work anymore...
I have an Iphone 3GS and the app for Facebook doesn't work anymore since last update made yesterday.
How can I restore it without the last update?
Or, what can I do to have the Facebook back again on my mobile?
Thank you for your help.Hi Ricoco,
I too had exact issue what you were experienced, then I went to Apple autorised service center and submitted my earpods, their it worked with all versions of Apple iphones, but it didn't worked on my 3gs. The service technician suggested for OS upgrade.Then I came home and I took the backup and upgraded 5.1 to 6.1 as he suggested, also it didn't worked. I was totally frustated and suddenly I got an idea!. What a funny thing here is, a safety pin resolved my issue, I took out all dust which was there in the jack hole. Then I check my earpods, it was amazing you know..MY EAR PODS WORKED!.
If you still have this issue, I hope this will help you.
Umesh -
ITunes 10.4 full screen with Win7-64bit doesn't work correctly.
iTunes 10.4 full screen with Win7-64 doesn't work correctly. I have the Windows taskbar on the left side of my screen. Maximized iTunes is panned to the left.
Same issue here. When the Windows taskbar is position on the top of the screen and then the iTunes windows is maximised, it's position is as if the Windows taskbar is at the bottom of the screen so the top of the iTunes window sits under the taskbar.
For those wanting a workaround, hold shift and right click the iTunes icon in the taskbar/quick launch bar and click restore, at least then you can adjust it to be full screen manually.
System:
Windows 7 Ultimate x64
iTunes 10.4
ATI 5750 video card -
LAN with TCP/IP doesn't work
Hello,
I have a problem with my laptop IdeaPad S10e 4187-5PG: LAN with TCP/IP doesn't work, after I have updated all the drivers to the latest ones form the Lenovo site (except BIOS update). I tried to check if LAN worksby sending a ping to the IP address and that is OK, but when Isend a ping to the default gateway it failes. A ping to the DNS server also fails.Could you please help me because I tried everythinh and I can't getthe LAN to work.
Thank you very muchPerhaps you could describe you network in a little more detail.
Is this a Workgroup home network or are you connected to a Domain server?
If this is a workgroup are you connecting to the internet via a cable or DSL router?
Do other computers on your network connect OK?
Has your S10e ever worked properly on the network?
Are you connecting via a wireless access point or LAN cable?
What do you Ping on and from where?
Can you Ping OK on another networked computer?
Open up a DOS Prompt (aka command prompt, DOS Box). and type IPCONFIG /ALL <enter>. Do you get a compatible IP address and subnet mask? You should also get the gateway IP address. -
I bought iphone 3gs from at&t a few years ago. Now I use it on Straight talk but MMS doesn't work.
Straight Talk is not a supported carrier. Take the issue up with them.
-
Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?
Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?
More information please.
Version of Reader? OS? Can you open reader by double-clicking on its icon? Can you open reader by double-clicking on a pdf file? What programs are trying to open reader? Some programs might be restricting your ability to view pdf files using the Reader plug-in due to security concerns. If this is the case you need to find out how to enable the plug-in in the case of each application.
Maybe you are looking for
-
Dear All, I installed SAP Business One 8.81 PL04 (on Server) and SQL server 2005. My questions are 1) i install B1 integration component, when i am opening the integration framework i am getting a windows security dialog box in which it is mentioned
-
Hello, I want pass value in STATUS and Reason for rejection according to requirement when i am creating multiple lead using BAPI_LEAD_CREATEMULTI. Please help me how can i pass value. Please give some sample code that in which table i have to pass va
-
I don't get any sound in elements 12 by entering video clips, but sound effects are played. How do I get the sound from the original data? I tried avi and MP4.
-
I am attempting to delete xml files through the following command: delete from (select 1 from resource_view where UNDER_PATH(res, '/home/user1/forms', 1) = 1 order by depth(1) desc); /home/user1/forms contains over 200,000 schema-based xml documents
-
slide presentation in Keynote iMac has helvetica neue and /or Arial as fonts. On transfer to iPad2 via iTunes, all slides apart from the title slide remain same font. title slide changes to Chalkduster - a blackboard chalk style font - bizarre. Any