Hi all, I need help please to run few query one after the other...
I understood I should do it with procedures? is it the simplest way?
I don't know PLSQL and it was quite difficult for me to try learn it alone.
there is a simplest way? or a good guide that able to help me?
thanks a lot,
Hi,
Here's an example of a SQL*Plus script.
Use any text editor to create a file (let's call it aug_6.sql) that contains all the statements you want to execute in order, like this:
-- ***** Begin aug_6.sql *****
CREATE SEQUENCE rownum_incrementing INCREMENT BY 1 START WITH 1;
CREATE SEQUENCE increment_order_num INCREMENT BY 1 START WITH 1000;
Insert into orders_main(order_num,order_date,sapak_num,status) values (increment_order_num.nextval, sysdate, '12','new3');
Insert into orders_details(row_num,order_num,item_num,quantity) values
(rownum_incrementing.NextVal,
( select max(order_num) from orders_main) ,'14','40');
Insert into delivery_main
values (increment_del_num.nextval
,(select max(order_num) from orders_main)
, sysdate
, (select sapak_num from orders_main where order_num = ( select max(order_num) from orders_main)));
-- ***** End aug_6.sql *****Note that I made a lot of changes in what you posted, because there seemed to be a lot of mistakes. (See list below.)
Once you have saved the file, you can run it in SQL*Plus by referring to the full path name of the file:
SQL> @c:\aaa\bbb\aug_6This is very useful if you have to do the exact same thing more than once (for example, if you are going to create the same sequences and INSERT the same data in your development database, then in your test database, and finally in your production database).
Here are a few things for you to watch:
(a) "Query" means "SELECT statement". Use "SQL Statement" if you're talking about any kind of SQL command (including CREATE SEQUENCE and INSERT).
(b) Every SQL statement must end with a semicolon (;) or slash (/).
(c) Make sure single-quotes always occur in pairs.
(d) Make sure parentheses occur in pairs, every "(" followed by a ")".
(e) Don't use strings to refer to numbers, or vice cersa. For example, if the columns item_num and quantity in the table orders_dtails are NUMBERs, then give them NUMBER values (without quotes) like 14 and 40, not string values like '14' and '40'.
(f) As part of a larger statement, you can simply use
SYSDATE
instead of the scalar sub-query
(SELECT SYSDATE FROM dual)
Similar Messages
-
After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.Urgent.TQ
Izit software or hardware? Confuse:(
Only can use wifi now.
Any way thanks guys for ur suggestion:) amishcake and simes -
Run two different Tcodes "KKS2" then "KO88" one after the other
Hi Abapers,
I want to run two different Tcodes "KKS2" then "KO88" one after the other. The variance is calculated using Tcode KKS2, after the successful calculation of variance the KO88 Tcode needs to be run for the settlement of materials.
How do I run both the Tcodes in a single program using BDC. The customer needs a Tcode for this and a selection screen for production order number as input.
Shall I use session bdc or call transaction?
I also want to display errors of the both the Tcodes in a single log.
Regards,
Anuradha.Hi ,
For uploading datas for Two transaction using a single program u have to go for Batch input session . Its not feasible with call transaction . Create a session using open_session and then with in it you have to manipulate screen number and screen fields for each of them and you have to ues two insert statement . Try using commit and wait after first insert of the Transaction . And then go for the second .And then use bdc_close_session to close the session.So that only one session will be created for both transaction . You could easily get the screen field name and number by creating two call transaction program and copy from them .
With Regards,
M.Sreeram -
Podcasts - getting them ALL to play (one after the other)...
I have several podcasts on my ipod (video and audio). How can it to play them in succession (the first one ends, the 2nd postcast starts, and so on..). I have CNN news for a video podcast. I watch one day of news. It ends then stops and brings me back to the main menu of the podcast. I have to scroll down and goto the 2nd day and watch. Then repeat. I'd like to just watch them all in row, one after the other. How can I do this???
My own Windows XPI started doing this some time ago and it worked very well. However, this last week or so when I go to Music:Playlist:Podcast and play (not select) it doesn't play now. Before it would go through one podcast after another. I may have changed a shuffle/repeat setting but the other playlists work. I recently installed iQuiz a great 'game' but there were reports of it changing settings.
Any thoughts? David -
Need help - how to run this particular method in the main method?
Hi all,
I have a problem with methods that involves objects such as:
public static Animal get(String choice) { ... } How do we return the "Animal" type object? I understand codes that return an int or a String but when it comes to objects, I'm totally lost.
For example this code:
import java.util.Scanner;
interface Animal {
void soundOff();
class Elephant implements Animal {
public void soundOff() {
System.out.println("Trumpet");
class Lion implements Animal {
public void soundOff() {
System.out.println("Roar");
class TestAnimal {
public static void main(String[] args) {
TestAnimal ta = new TestAnimal();
ta.get(); // error
// doing Animal a = new Animal() is horrible... :(
public static Animal get(String choice) {
Scanner myScanner = new Scanner(System.in);
choice = myScanner.nextLine();
if (choice.equalsIgnoreCase("meat eater")) {
return new Lion();
} else {
return new Elephant();
}Out of desperation, I tried "Animal a = new Animal() ", and it was disastrous because an interface cannot be instantiated. :-S And I have no idea what else to put in my main method to get the code running. Need some help please.
Thank you.Hi paulcw,
Thank you. I've modified my code but it still doesn't print "roar" or "trumpet". When it returns a Lion or an Elephant, wouldn't the soundOff() method get printed too?
refactored:
import java.util.Scanner;
interface Animal {
void soundOff();
class Elephant implements Animal {
public void soundOff() {
System.out.println("Trumpet");
class Lion implements Animal {
public void soundOff() {
System.out.println("Roar");
class TestAnimal {
public static void main(String[] args) {
Animal a = get();
public static Animal get() {
Scanner myScanner = new Scanner(System.in);
System.out.println("Meat eater or not?");
String choice = myScanner.nextLine();
if (choice.equalsIgnoreCase("meat eater")) {
return new Lion();
} else {
return new Elephant();
}The soundOff() method should override the soundOff(); method in the interface, right? So I'm thinking, it should print either "roar" or "trumpet" but it doesn't. hmm.. -
Reg:In wdDoModifyView the changes take place one after the other in run tim
hai all,
Iam using wdDoModifyView() for displaying the description of the key value selected in the value helpin inputfield.I have 5 such input fields with value help.when i select the key from value help in order (i.e) from 1st input field,2,3,4,5 it works but if i select the 5th one first the desription gets displayed oly after i complete the 1st 4 selections.i need to display the description despite the selection made in any order.plz help me in this issue.
Thanks in advance
regards
Sharanya.Rhai sumit,
here is the coding.The text view is set only in order.If user selects from the sales group value help 1st the description gets displayed oly after i complete selecting the 1st four.plz help me in this issue.Thanks in advance.
public static void wdDoModifyView(IPrivateSalesformview1 wdThis, IPrivateSalesformview1.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
try
//ordertype textview
String ordertype=wdContext.currentContextElement().getOrderType();
for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvakt().size(); i++)
if(ordertype.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvakt().getLt_TvaktElementAt(i).getAuart()))
wdContext.currentContextElement().setTvordertype(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvakt().getLt_TvaktElementAt(i).getBezei());
//salesorg textview
String salesorg=wdContext.currentContextElement().getSalesorg();
for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkot().size(); i++)
if(salesorg.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkot().getLt_TvkotElementAt(i).getVkorg()))
wdContext.currentContextElement().setTvsalorg(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkot().getLt_TvkotElementAt(i).getVtext());
//distribution channel textview
String dischann=wdContext.currentContextElement().getDistribchan();
for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvtwt().size(); i++)
if(dischann.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvtwt().getLt_TvtwtElementAt(i).getVtweg()))
wdContext.currentContextElement().setTvdischann(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvtwt().getLt_TvtwtElementAt(i).getVtext());
//division text view
String div=wdContext.currentContextElement().getDivision();
for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tspat().size(); i++)
if(div.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tspat().getLt_TspatElementAt(i).getSpart()))
wdContext.currentContextElement().setTvsaldiv(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tspat().getLt_TspatElementAt(i).getVtext());
//sales office textview
String saloff=wdContext.currentContextElement().getSalesoff();
for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkbt().size(); i++)
if(saloff.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkbt().getLt_TvkbtElementAt(i).getVkbur()))
wdContext.currentContextElement().setTvsaloff(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkbt().getLt_TvkbtElementAt(i).getBezei());
//sales group textview
String salgrp=wdContext.currentContextElement().getSalesgrp();
for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvgrt().size(); i++)
if(salgrp.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvgrt().getLt_TvgrtElementAt(i).getVkgrp()))
wdContext.currentContextElement().setTvsalgrp(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvgrt().getLt_TvgrtElementAt(i).getBezei());
catch(Exception ex) -
i have an HP with mozilla 4 browser
Hi,
Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
Any leads on this is welcomed. Thank you.
Regards,
Hon Peng
===================
On Fujitsu Primepower
SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
the Dependencies for libjvm.so are as follows:
===================
bash-2.05$ ldd -r libjvm.so
libsocket.so.1 => /usr/lib/libsocket.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libCrun.so.1 => /usr/lib/libCrun.so.1
libm.so.1 => /usr/lib/libm.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libc.so.1 => /usr/lib/libc.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/FJSV,GPUS/lib/libc_psr.so.1
=====================================
On SunFire, Sun machine
SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
the dependencies are different for the libjvm.so:
=====================================
bash-2.05$ ldd -r libjvm.so
libsocket.so.1 => /lib/libsocket.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libdl.so.1 => /lib/libdl.so.1
libCrun.so.1 => /usr/lib/libCrun.so.1
libm.so.1 => /lib/libm.so.1
libthread.so.1 => /lib/libthread.so.1
libc.so.1 => /lib/libc.so.1
libnsl.so.1 => /lib/libnsl.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1 -
I can't get Flash Player to work at all I need help PLEASE!!!
I have been trying for close to 1 week now to figure out how to get this flash player to work on both IE & Firefox and it's driving me crazy. I'm running a Windows 7 Home Premium Edition 64-bit not sure what other info you need but I'm here if you need more. I just want to get this fixed so hubby can play his games and I can play mine.
Thanks so muchGames require not only the latest Flash Player, but the least Shockwave as well. I recommend a complete “clean install” for both.
Download the following by right clicking and selecting either "Save target as"(IE) or "Save Link As"(Firefox):
Shockwave Player Uninstaller
Flash Player Uninstaller
Flash Player for ActiveX (Internet Explorer)
Flash Player Plug-in (All other browsers)
Shockwave Player 12 FULL Installer (Other browsers)
Save the files - DO NOT RUN ANYTHING YET.
Reboot your system.
BEFORE opening anything, run the UNINSTALLERS to remove Shockwave and Flash Player,
Once they’ve finished, go to: C/Windows/System32 and delete the Macromed folder.
Go to: C/Windows/SysWOW64 and delete the Macromed folder.
Open your Registry Editor (Start>Run or press the Windows key + R and tope “regedit” [minus the quotes] and click OK)
In the Registry Editor, go to: HKEY_LOCAL_MACHINE/SOFTWARE and delete the Macromedia folder.
Go to: HKEY_CURRENT_USER/Software and delete the Macromedia folder there.
Close the Registry Editor and empty your Recycle Bin.
Run the Flash Player installers, and the Shockwave FULL installer for Firefox.
Lastly, using IE, visit: http://get.adobe.com/shockwave/otherversions/ to download and install the Shockwave FULL installer for ActiveX. -
. Can pictures get on your icloud other ways? Can something be put on there by someone other than yourself, liked public wifi or hacked? Got a big problem with some **** on an iPod and I am to knowledgeble about the ipod...thanks
You're not confusing this with a shared Photo Stream...?
Because the short answer is no, photos don't appear unless they were put there by someone with your Apple ID credentials. To rule out that possibility, change your Apple ID password by carefully following all these instructions:
iCloud: Change your iCloud account password
If you decide to change your password, and you also want to change your Apple ID, I recommend you do not concurrently change your Apple ID until sufficient time has passed and you are confident the password change has been effected on all your iOS devices. 24 hours ought to be more than enough.
It is not necessary to change your Apple ID unless it is an email address you no longer wish to use. -
Need help please Itunes listing songs multiple times after importing
a play list.
I recently had my hard drive crash on me although had most of the music backed up as well as copys of the play lists I and my daughter had created.
The problem is that once I import a play list over the net work itunes is listing the songs twic and creating a mess and other minor problems. Yet if I try and import the play list before I add any music to the library it does nothing. How in the heck do I make itunes just search the library for the songs listed on the play list and then show them with out it actually trying to list the songs in duplication?
ASUS A7N8X-E Deluxe mobo Windows XP ProThat may be what is happening, since the play list was created on my machine before it was then moved over to a back up drive. Just really frustrated since we recently lost our daughter and trying to get this sorted out.
I appricate your taking the time to respond to my question. I will try and see if I can get this sorted out later this eve or in the morn. If any one has any ideas or knows how to get itunes to not display duplicate song titles I would be extremly gratefull. -
I had many tabs opened in my Firefox browser and usually I can close the browser and reopen it, and the tabs are still there.
After restarting my computer, I went to Firefox and it started with a new session, without the option to restore the previous session.
I have a feeling that there is a way to restore these tabs, but in the case that it is not, then I'll just have to accept that.
I was thinking maybe a backup file of the tabs, like how the bookmarks can be backed up.
The tabs were important, so I just wanted to use this as the last resort to see if they can be restored in some way, shape or form.
This is the first time that I'm using this, so I'm hoping that someone can help me with this issue, as I'm sure that I am not the only one that has ever experienced this problem.You can make a backup copy of the file sessionstore.js in the profile folder.
*http://kb.mozillazine.org/sessionstore.js
*Help > Troubleshooting Information > Profile Directory: Open Containing Folder
You can also bookmark all open tabs via the right-click context menu of a tab on the tab bar. -
Need help trying to get my gmail open after the new update of iOS 7?
After down loading the new up for my iPad my gmail will not open. I tried dumping and then went back to App Store and reloaded, that did not work. In my settings app it said that my (browser cookies functionality button needs to be turned on). Where is that button? I am clueless.
Look in the settings app under Safari on the right-hand side of the page.
-
HT4623 cant find software updates on my iphone4 model MC605J.Need help please..
cant find the sofware update on my phone model MC60J
Need help please..What happens when you connect the iPhone to the computer you
usually sync with and use iTunes on that computer to update the
iPhone?
What version of iOS is currently on your iPhone? -
I need help please-ipod mini/itunes help
Hi,I have a computer and a laptop. I would like to add my computer itunes libary to my laptop intunes libary.Both liberies are itunes7. I just cant do it. I need help please. Simple steps or someone on the phone or someone who lives in Wimbledon and could come by and help me,cheers.Conny
Check these out:
Getting Music from your iPod to your Computer 3rd party options
Using One iPod With Multiple Computers
I hope this helps! -
my kids enetered the wrong unlock code on my ipod touch too many times and now the screen says IPOD DISABLED connect to itunes. I have tried connecting it to itunes and I cant because the ipod is locked. need help please! any ideas? Thanks, Nick
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
Maybe you are looking for
-
Process for migrating CMSDK from one server to another
All: We are in the process of migrating our CMSDK installation and database from one server to another. In doing so, we would like to retain our documents and folders and other custom objects that have been created till date. If there is a recommende
-
Drill down reporting - add new field
Hi experts, we have created drill down reporting for vendor line item using FKI4. we need to add new characteristic (new field - assignment column- zuonr) for form and reports. guide me. Regards, Ravi
-
My wife has to stay home for health reason and she got a hold of my windows laptop and got malware even though she normally is cautious but....now that I need a new laptop it make's me thinking into swapping to a macbook pro instead of a Windows mach
-
how do I get keyboard from white keys with black letters to black keys with white letters. This OS7 keyboard is very annoying to type with
-
Mail keeps crashing immediately after launch
I just installed Lion (10.7.2) on my MacBookPro. The mail app keeps crashing immediately upon launch. dew39x