Kindlyyy helppppp
m yproblem is that i hav autonumber field user_id in my oracle table;
wen i insert sequence seq.nextval from oracle ide it workz fine...bt now i hav user profil nd i hav to make entries thru java code...nd wen i use
pt=con.prepareStatement("insert into user_basic(user_id,f_name,m_name,l_name,email,password,pet_name,age,gender,mari,citizen) values(seq.nextval,?,?,?,?,?,?,?,?,?,?)");
it gives null pointer exception....
i hav tried:
1.
"insert into user_basic(user_id,f_name,m_name,l_name,email,password,pet_name,age,gender,mari,citizen) values(?,?,?,?,?,?,?,?,?,?,?)");
pt.setString(1,null);
2.
"insert into user_basic(f_name,m_name,l_name,email,password,pet_name,age,gender,mari,citizen) values(?,?,?,?,?,?,?,?,?,?)");
pt.setString(1,fname);
pt.setString(2,mname);
ans so on all entries
bt diz way oracle leavez user_id blank.....
kindly help regarding usage of autonumber in prepared statement....thanxx....
code:public boolean validate() throws Exception
Connection con=null;
PreparedStatement pt=null;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:ds;Uid=SYSTEM;Pwd=manager");
pt=con.prepareStatement("insert into user_basic(user_id,f_name,m_name,l_name,email,password,pet_name,age,gender,mari,citizen) values(seq.nextval,?,?,?,?,?,?,?,?,?,?)");
pt.setString(1,fname);
pt.setString(2,mname);
pt.setString(3,lname);
pt.setString(4,em);
pt.setString(5,pwd);
pt.setString(6,petname);
pt.setInt(7,ag);
pt.setString(8,gender);
pt.setString(9,marital);
pt.setString(10,citizenship);
x=pt.executeUpdate();
pt.close();
catch(ClassNotFoundException ex)
{System.out.println(ex);
//out.println("Couldn't load database driver: " + ex.getMessage());
catch(SQLException ex){
System.out.println(ex);
//out.println("SQLException caught: " + ex.getMessage());
catch (Exception ex){System.out.println(ex);
// out.println(ex);
finally {
// Always close the database connection.
try {
if (con!= null)
con.close();
catch (SQLException ignored){
System.out.println(ignored);
if(x==1)
return true;}
else
{return false;}
}
This post is nearly unreadable, and is answered in the other post. The solution from your "Oracle IDE" is the same one you would use from java. First select nextval from the sequence and then get the id and use that in the insert statement. If you want to automate it use a before insert trigger. If you are new to oracle ask someone (such as your DBA) to write the trigger for you.
This page has an example of the trigger: http://www.adp-gmbh.ch/ora/misc/autonumber.html
Similar Messages
-
Help!!!!!!!!! I need Downloading older versions if apps in the App Store! I know that this use to be a feature! I am running iOS 6.1.6 on my iPhone 3GS and I can't install the twitter app!!!! HELPPPPP PPPPLLLLEASSEEE
Hey Nathan,
I know it can be a bit frustrating to try to get a version of an application that will work on an older iOS version. This article explains how to do it -
Install the latest compatible version of an app on an earlier version of iOS or OS X - Apple Support
Thanks for using Apple Support Communities.
Happy computing,
Brett L -
Waaater damage??? HELPPPPP!!!
so my phone fell in the water yesterday, and I opended the phone really fast, dried the battery and put it back inside so it opened and worked fine but i could not touch, press or open anything. then I took the battery out again and put the phone in countainer of riice. i checked it maybe twice but then left it for one day. when i checked it the next day whichs today ,,it gaves me LED red flashing light with a black blank screen it does not open now any idea what to do next? any suggestions????
or at least at least, can i back up? get the informations our??? plzzz? i tried to connect it to the computer.. and desktop manager came on byitself but did not recgonize the phone. is there anything i can do???
I have blackberry storm 1 and a MAC laptop.
Please help, im desperatePoly post...answered here:
http://supportforums.blackberry.com/t5/BlackBerry-Storm-BlackBerry-9500/water-damage-HELPPPPP/m-p/53...
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Helppppp idk how but a few of my songs are stuck on replay!!!!
Helppppp!!! theres a downward arrow next to a few of my song titles(only the titles) and only those songs play on repeat like some sort of shortcut playlist in my full library. idk how it happened and idk how to get rid of it!!! please help meee!!!!
It's very odd they should be appearing in the library twice. But, go to Settings > Store and unselect the option to "show iTunes in the Cloud purchases."
-
my itunes won't recognize my iphone and i don't know how to install the 10.6.3 itunes on my phone or whatever. helppppp.
its looking for you to update on your computer. if your on a windows your want to open up itunes. click on help, and then click check for updates and then that should let you up date it. mac you want to click on itunes up by file and edit then click check for updates
-
I have my iMovie movie at 38 minutes long, i want to export it as iDVD (or media browser) so that i can burn it onto a DVD but everytime i click export it says 'error -50' HELPPPPP PLEASE!!!!
Could it be i have too much stuff taking up memory already on my MAC? i really need to export it!
All of the other movies i have exported have worked perfectly but this one just wont export.
I have iMovie 08This is the error code that I got when I right click on the movie and click burn "movie" to disc:
The disc can't be burned because the communication between the computer and the disc drive failed (error code 0X80020022 -
I've made a video about 3 minutes long but when i try to download it youtube it fails (-error 108) how can i fix it? convert? downsize? helppppp, i want to make full hd videos longer than 3 minutes long. i manged to upload a short 1:43 min video to youtube but the quility was poor compared to the camera a was using wich was hd?
I've made a video about 3 minutes long but when i try to download it youtube it fails (-error 108) how can i fix it? convert? downsize? helppppp, i want to make full hd videos longer than 3 minutes long. i manged to upload a short 1:43 min video to youtube but the quility was poor compared to the camera a was using wich was hd?
-
I can't get the IOS 5 to work for windows Vista. I'm running kaspersky pure 2.0, windows firewall and windows defender. I have turned them all off, I then attach my Ipod 4th gen and I get the "cannot connect to itunes update server". I ran diagnostics in itunes and it tells me I dont have a internet connection. I'm on the internet right now, and I DO have a internet connection, but it tells me Itunes says otherwise. I'm able to send this message on the same pc with internet connection but keep running into this error. I have now read discussiong boards through apple and disabled all my firewalls, still no luck. I was able to update the lates version of itunes, and just waiting to get my ipod updated now, please help me.
On the computer you should be able to go to the network properites. Go to the TCP part and unchec the line that says obtaind DNS automatically and check the one that says use the following. Add the 8.8.8.8 and Google other 8.8.4.4.
For more info see:
https://developers.google.com/speed/public-dns/ -
Blue Screen Crash during install of iTunes HELPPPPP
I've tried just about everything to get iTunes reinstalled on my computer. I have Windows Vista SP1 and below is the problem I get when try to install iTunes. The blue screen message begins w/Memory Management.
PLEASE HELP!!!!
Problem signature:
Problem Event Name: BlueScreen
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 1033
Additional information about the problem:
BCCode: 1a
BCP1: 0000000000041790
BCP2: FFFFFA8003299250
BCP3: 000000000000FFFF
BCP4: 0000000000000000
OS Version: 606001
Service Pack: 1_0
Product: 768_1
Files that help describe the problem:
C:\Windows\Minidump\Mini071509-02.dmp
C:\Users\PsychoRoe\AppData\Local\Temp\WER-162615-0.sysdata.xml
C:\Users\PsychoRoe\AppData\Local\Temp\WER4375.tmp.version.txt
Read our privacy statement:
http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409If iTunes does not recognize the iPod
put it into recovery mode
See here
http://www.apple.com/support/ipodtouch/assistant/restore/
Then restore
http://support.apple.com/kb/HT1414 -
i cant find the app store on my computer it is not in my applications folder, dock, desktop and ive tried looking in spotlight but its gone how can i get it back
The App store was first available in 10.6.5
You won't find it on your computer until you buy the 10.6 DVD, and install it on your Mac, and update it to a near-current version.
In the US, the local store does not carry the DVD any more, only the online store. US$29. -
HT4623 i can't on my iphone, it still buffering? how to solve? helppppp
when i push the on button it on and the apple logo is out, but it buffering and outo shutdown??
what should i do? i love my iphone.... pleaseeeeee......Take it to Apple for evaluation and possible replacement.
-
Tax Reporter HELPPPPP.. please....
Hello Gurus,
for tax reporter in 6.0 you use PDF now, no SAPScript. My questions are along the lines of can't I use the delivered PDF forms or do I have to copy them? How much config do I have to do to get the tax reports and forms out?
Any help is greatly appreciated and points awarded..
Thanks in Advance..
Soniya Singh...Hi Soniya,
The most recommended approach is to use SAP delivered Tax reporter PDF Forms. The reason is SAP has already covered all the major legal requirements in Tax reporter. You need to map your wage types to proper tax form groups and you will see the result.
If you have some specific requirements on the Mag Media you can copy standard to Z copy and make the changes.
I will forward you one PPT file which will tell you more about the Tax reporter.
Provide me with you email address.
Thank you,
Arti -
The Software could not be verified?! HELPPPPP!
i downloaded Mac OS X 10.7 and i just tried to download it and it says that it may have been corrupted or tampered with during download?!?!?!?! WHAT DO I DO.
I encountered the same "…can't be verified…" error on my 2010 MBP too. Tried six times and finally I could get it installed. Here's what I did:
Went to "Users & Groups" in System Preferences, checked that the Apple ID specified for the current user is the same Apple ID I used in the download purchase of ML from the App Store.
Rebooted in Safe Mode.
Went to Disk Utility -> Repair Disk Permissions
Downloaded ML at midnight (The download was significantly faster and would less likely get corrupted.)
Rebooted in Normal Mode.
Ran the ML Installer. -
Helppppp!!!!!!
okay so every time i try to open safari, a little error box shows up and says something like "a document could not be created". it also wont let me open a new window, so i have to click file and then click on open location...
why is this happening??Hi,
First Quite Safari application
Go to >Home_folder>Library>Preferences>com.apple.Safari.plist
Drag this file to your desktop ...
Now relaunch Safari an do a test if everything is okay, if so trash the Safari.plist file an empty the trash can.
Good luck ...
Dimaxum -
HELPPPPP!!!!! ipod transfer- Windows to Mac
i just got my macbook and i had a horrible toshiba.
so my ipod is formatted to windows..
can i get my songs and change the formatting to mac os X?
HELPPThat to say?? otherwise you're wonferful !!!! I try to transfer my itunes library from my old windows PC to my new mac since 15 days ( I ask questions on all the forums )... and you're the first one who propose a, how to say..magical solution : ipodrip is easy and it's very quick, just 10 min to transfer my song ipod to my new itunes library without that I need to restore it ( all my ipod is not on itunes but the main is there....it's not too bad !!! )
If I could, I will give you millions of "solved" stars
One more time THANKS A LOT !!!!!!!!!!
Pompom
Maybe you are looking for
-
Audio driver fails to install on xp 64 bit
hello i have an »HP Compaq dc5850 Small Form Factor PC (ENERGY STAR) Serial Number: [Personal Information Removed] Product Number: AM500AW i installed windows xp 64 bit along with service pack to and i downloaded the xp/2000 adi hd audio drivers
-
I am using WIndows 7 64 bit, and the most recent version of Premiere Pro CC on an I7 machine with 8GB of memory. I have imported a HD .mov clip and placed it on the timeline. When I press 'Play', it shows in the Program Monitor window. When I stop
-
My ipod only shows a black screen and an apple logo
My ipod only shows a black screen and an apple logo. It wont connect to iTunes, and charging doen't work. HELP PLEASE!
-
To send Mfr part nuber with changed PO
Hi Experts, I have a scenario of IDoc to cXML, Which we use to send. the PO and PO-change. The requirement is to send the Manufacturer Part number to cXML. 1. For the PO I have worked out the below mapping. [http://www.flickr.com/photos/25429360@N07/
-
Why will links in Outlook Express emails no longer open a tab in Firefox?
Before firefox update, when I clicked a web link in an Outlook Express email, Firefox would automatically open and go to the correct website. This no longer happens. Where do I change the settings?