Update query got stuck

Hi, i am creating an update query, i know I had problem before, but when i use this method, it works in one of the pages. Now i am having problem again. Don't know why. Here are the 2 methods i used, both failed.
method 1:
String sqltextupdate = "UPDATE BYDATA SET b=?, note=?, l_amt=? WHERE DATAID= 500";
Statement stmt = conn.createStatement();
PreparedStatement ps = conn.prepareStatement(sqltextupdate);
ps.setDouble(1, b_amt);
ps.setString(2, notes);
ps.setDouble(3, ls_amt);
ps.executeUpdate();
Method 2:
String sqltextupdate = "UPDATE BYDATA SET b="+b_amt+", note='"+notes+"', l_amt="+ls_amt+" WHERE DATAID=500"
Statement stmt = conn.createStatement();
stmt.executeUpdate(sqltextupdate);
Please help!!
Thank you!

Never mind!
My error: a primary key is create for the table bydata, and the problem is solved.

Similar Messages

  • HT201263 My iPhone 4 started to update but got stuck in recovery mode. I've tried everything anyone on the website has told me to do, but nothing has worked. Is there anything I can do? I need my phone

    My iPhone 4 started to update but got stuck in recovery mode. I've tried everything anyone on the website has told me to do, but nothing has worked. When you go to turn it on, it shows the Apple symbol,  then it goes to the connect to iTunes screen. When I do that, it just says error with the code 9006. I've followed what the Apple site has said to do for it, but the phone is still is the same  state. Is there anything I can do? I need my phone back as soon as possible.

    Hello Hester Emily,
    Thanks for using Apple Support Communities.
    I'm sorry to hear about the difficulties you're experiencing after this update process.  I found the following article that has more information on the iTunes error code 9006:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Configure your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006, 9807, or 9844. Sometimes as a result of this issue, a device might stop responding during the restore process.
    Check your security software and settings, which can block ports and prevent connection to Apple servers during update and restore.
    Take care,
    Alex H.

  • While updating phone got stuck in recovery loop

    This morining i wanted to update my iphone 4 to iOs 7.1.1
    It started and the 'veryfing' sing came up. the phone then shut down and the screen 'connect to itunes' came up and nothing else happened. So i found out that my phone got stuck in the recovery loop. During the day i tried different ways to get out of that mode. By now the phone wont even connect to itunes.
    What can i do?

    Hi 11Tiana22,
    If you are having issues with an iPhone that is currently stuck in Recovery mode, you may find the following article helpful, in particular Step 5 if your iPhone isn't showing up in iTunes:
    Apple Support: If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Regards,
    - Brenden

  • Sub-query got stuck  !!!

    Data
    fcst_retail_value (current Table)
    fcst_entity_id period_id fcst LYfcst
    100     2000     30     null
    100     2002     40     null
    100     2003     70     null
    100 2001 50 null
    200     3000     140 null
    200     3001 400 null
    300     8000     160 null
    300     9000     260 null
    300     4000     270 null
    400     5000     440     null
    400     6000     960     null
    400 7000     900 null
    retail_fcst_map
    fcst_entity_id retail_entity_id
    100               101
    100               102
    100               103
    200               201
    200               202
    300               301
    300               302
    400               401
    400               402
    retail_bucket
    retail_entity_id retail_type_cd retail Period_id
    101          forecasted     30          2000
    102          forecasted 40          2002
    101     forecasted     50          2001
    102 forecasted 70          2003
    202 forecasted     140          3000
    201 forecasted     150          3001
    204 forecasted     250          3001
    301 forecasted     160          8000
    303 forecasted     260          9000
    302 forecasted     270 4000
    401 forecasted     330 6000
    402 forecasted     440 5000
    403 forecasted 500 7000
    404 forecasted 400 7000
    405 forecasted     630 6000
    cal_period
    period_id year cal_id
    2001     2004 45
    2000     2006 45
    2002     2005 45
    2003     2003 45
    3000 2006 44
    3001 2005 44
    3002 2004 44
    8000 2006 43
    9000 2005 43
    4000 2004 43
    5000 2006 42
    6000 2005 42
    7000 2004 42
    OUTPUT NEEDED
    updating fcst_retail_value.lyrdmd with last years data not changing any other data within the table
    fcst_retail_value (2006 DATA + LYDMD populated)
    fcst_entity_id period_id fcst LYfcst
    100          2000          30     40
    100          2002          40     50
    100          2003          70     null
    100 2001 50 70
    200          3000          140 400
    200          3001 400 null
    300          8000          160 260
    300          9000          260 270
    300          4000          270 null
    400          5000          440     960
    400          6000          960     900
    400          7000          900 null
    Tried this but I think i need to write a sub query to go further:
    select sum(db_self.retail_value) as db,
    cp.year, db_self.period_id as dbp,
    cp.period_id as cpp,
    fdv_parent.period_id as fdvp,
    fdv_parent.fcst_entity_id as feid,
    cp.cal_period_id as ccpid,
    cp.cal_id as calid
    cp_ly.year
    from retail_fcst_map dfm, retail_bucket db_self, fcst_retail_value fdv_parent, cal_period cp,cal_period cp_ly
    WHERE dfm.fcst_entity_id = 100
    AND dfm.retail_entity_id = db_self.retail_entity_id
    and db_self.period_id = fdv_parent.period_id
    and dfm.fcst_entity_id = fdv_parent.fcst_entity_id
    and fdv_parent.period_id = cp.period_id
    AND cp_ly.year = cp.year - 1
    Group By db_self.period_id, cp.year, db_self.period_id, cp.period_id, fdv_parent.period_id, fdv_parent.fcst_entity_id, cp.cal_period_id, cp.cal_id;
    Thanks
    mohan

    OUTPUT NEEDED
    I need to update fcst_retail_value.lyfcst with last years data not changing any other data within the table
    fcst_retail_value (2006 DATA + LYDMD populated)
    fcst_entity_id period_id fcst LYfcst
    100 2000 30 40
    100 2002 40 50
    100 2003 70 null
    100 2001 50 70
    200 3000 140 400
    200 3001 400 null
    300 8000 160 260
    300 9000 260 270
    300 4000 270 null
    400 5000 440 960
    400 6000 960 900
    400 7000 900 null

  • When i was trying to update my iPhone 5s to the latest version of ios 8.1 , it required more space so i had to delete data manually, meanwhile i was doing so the phone got stuck and went off & when it came on again i found it on the recovery mode  ??

    hello there everyone
    I lost everything cause I wanted to update my phone
    here is what happened with me exactly :-
    I plugged in my phone into the charger  & connected my phone to a wireless connection to  start the operation of updating it, I immediately noticed that I dont have the required space to proceed the download so i had to delete data manually, & meanwhile i was doing so my phone became slow  and it got stuck then it went off after that it came on again but it was on the recovery mode ??
    did I lose everything ??? what did I do wrong  ??? what can i do to recover this ??

    Hi, Milanista5
    Thank you for visiting Apple Support Communities.
    When experiencing issues restoring or updating an iPhone, here are the best articles to go through.  If you received a specific error number when restoring, see the section labeled Get more help in the second article below.
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    iOS: Troubleshooting update and restore issues
    http://support.apple.com/kb/ts1275
    Cheers,
    Jason H.

  • TS3694 hi i recently updated into ios 7.0.4 now i want to fully restore my ipad to resell but when i restore it it got stuck with apple logo and progress bar with 45% completed as firware file is downloaded using ipad 4 wifi itunes 11.3.8

    hi i rescently updated my ipad 4 in ios 7.0.4 and for resell purpose i want to restore my ipad via itunes but it got stuck at apple logo and progress bar of 45% completed i tried it 50 times but it stuck on that exact point for hours i cant able to restore it and had no errors it just like freezes at one point i also uses dfu mode but got stuck at same problem using windows 7 32 bits itunes 11.3.8 ipad 4 wifi please help

    My iPhone 5 wouldn't start after I turned it off a few minutes after writing this. It went into recovery mode and I had no choice but to connect to iTunes on PC and restore.
    I restored to factory setting first, just to validate my phone was okay. For a second consecutive iOS update, the  iPhone 5 did not update smoothly while connected to PC and iTunes - I had to retry two times before the progress bar for the update showed. (The exact same problem with the restart occured when I updated to 7.0.4.)
    The good news is that I was ultimately able to restore the iPhone 5 to factory settings while running iOS 7.0.6. I did have a backup from about a month ago lying around and was able to successfully restore with that as well, so the damage done is almost negligible since I had my contacts, notes, mail, etc. backed up to iCloud.
    Once I completed both restores, the sync with iTunes worked fine.

  • How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. I don't want to restore everything just my Pages documents.

    How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. Everything I can find is about wiping everything out and restoring everything. I don't want to restore everything just my Pages documents (and numbers and keynote that also locked up during updating).

    What I meant is turn off Documents and Data in iCloud in OS X. Keep it on on your iOS devices. iCloud will sync documents between the iOS devices and make them available on the iCloud web site, but it won't mess up iWorks' open and save dialog boxes. It also won't assume that you want all your documents in iCloud, which I think is undesirable anyway.
    Keep iOS and OS X separate, and use the web site to move files between the two as necessary.
    iOS iWork is different from OS X iWork. There are fewer fonts on an iOS device. iOS iWork programs have slightly different feature sets than OS X iWork programs, and the file formats are different. iCloud automatically converts the file format when necessary, but if you make a habit of saving things directly to iCloud, you are limited to the lowest common denominator between the two versions of iWorks. So why would anyone want iWork on the Mac to open and save documents on iCloud by default?
    If you want to store files in the cloud and sync them on your Macs, SugarSync is a much better solution. It lets you choose your sync folders, it doesn't make you reorganize your files, it lets you sync all file types, it doesn't convert files to a different format and back, and it stores everything in the cloud, too. Just the simle act of saving a file backs it up and syncs it. I wouldn't live without it. iCloud is best with iTunes purchases and synchronizing Mac settings and iOS files; I woudln't live without it. The two make an unbeatable combination.

  • While updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    while updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    Disconnect the iPad, do a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is 'appsolutely' safe!, reconnect and follow the prompts.
    If that does not work then see here http://support.apple.com/kb/HT1808

  • I'm trying to update my daughter's Ipad2 to the new IOS 8 and it's got stuck on the connect to ITunes display.  We don't have a computer to connect it to and it's never been connected to one.  How do I get past this?

    I'm trying to update my daughter's Ipad2 to the new IOS 8 and it's got stuck on the connect to ITunes display.  We don't have a computer to connect it to and it's never been connected to one.  How do I get past this?

    You can try a soft-reset of pressing and holding both the home and sleep buttons for 10 to 15 seconds so that it reboots, but you are likely to get the same screen. If it does then it will need to be connected to a computer's iTunes so that it can be reset back to factory defaults - do you have a friend with a computer with iTunes installed on it, or is there an Apple store nearby that you could try going to (if there is then preferably make a Genius Bar appointment at it, or don't go at a busy time) ?
    Has she been backing up to the cloud ? If she has then she should be able to restore to that. If not then what she can redownload for free from the stores will show in the Purchased tabs in the store apps.

  • HT3743 How do i restore my iphone from "no Service". I tried to update my iphone 3G TO iOS 6.0. But it got stuck and now my itunes is displaying Error message: "there is no sim card installed in the iphone you are attempting to activate" Kindly suggest

    How do i restore my iphone from "no Service". I tried to update my iphone 3G TO iOS 6.0. But it got stuck and now my itunes is displaying Error message: "there is no sim card installed in the iphone you are attempting to activate" and my iphone is without service. While i am trying to activate my ihone on wifi also it doesnt saying servers are temporary unavailable try after sometime. Kindly suggest

    It sounds a lot like your phone was hacked or jailbroken to unlock it prior to your trying to update it.
    If that is the case, it is nowpermanently bricked.

  • TS3694 How do i restore my iphone from "no Service". I tried to update my iphone 3G TO iOS 6.0. But it got stuck and now my itunes is displaying Error message: "there is no sim card installed in the iphone you are attempting to activate" Kindly suggest

    How do i restore my iphone from "no Service". I tried to update my iphone 3G TO iOS 6.0. But it got stuck and now my itunes is displaying Error message: "there is no sim card installed in the iphone you are attempting to activate" and my iphone is without service. While i am trying to activate my ihone on wifi also it doesnt saying servers are temporary unavailable try after sometime. Kindly suggest

    tariqrehmani wrote:
    How do i restore my iphone from "no Service". I tried to update my iphone 3G TO iOS 6.0. ...
    The iPhone 3G is Not Compatible with iOS 6...
    It also appears that your phone may have been Hacked and / or Jailbroken...
    If this is the case... you are out of luck... Because...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
    Why Jailbreak is Not Supported  >  http://support.apple.com/kb/HT3743

  • In trying to update my iPhone 3Gs from v. 3.13, it apparently downloaded the upgrade, but got stuck during the backup. It backed up for over an hour, and now the green bar in the Backup window is now colorless and is showing no movement.  Any suggestions?

    In trying to update my iPhone 3Gs from v. 3.13, it apparently downloaded the upgrade, but got stuck during the backup. It backed up for over an hour, and now the green bar in the Backup window is now colorless and is showing no movement.  Any suggestions?

    In trying to update my iPhone 3Gs from v. 3.13, it apparently downloaded the upgrade, but got stuck during the backup. It backed up for over an hour, and now the green bar in the Backup window is now colorless and is showing no movement.  Any suggestions?

  • After updating from ios 7.1.2 to 8.1.2, iphone got stuck syncing with itunes!

    After updating from ios 7.1.2 to 8.1.2, iphone got stuck syncing with itunes!
    I searched for some solutions on the internet and applied following fixes:
    1- Disconnected iphone from PC and closed itunes.
    2- Reset the iphone by holding down the On/Off button.
    3- Connected iphone back to PC to sync with itunes.
    Apparently this fixed the problem, and iphone synced with itunes.

    same here, but now you can't downgrade to iOS 7.x, since apple has closed the verification server for that version.

  • [Solved]my netbook got stuck in rootfs after update (EEE PC 1005HA)

    Hi guys!!
    So, yesterday i've updated the system. everything goes normal. today, when i turned it on, it got stuck in rootfs. i don't know what happened, if that behaviour is my fault or my system got crazy... i've searched about this problem but i found nothing. hope you can understand that is happening here.
    here i have a "screenshot", showing what's happening
    thank you.
    ps. sorry for my bad english.
    Last edited by dancruzsc (2012-06-30 18:43:04)

    In the most recent update, did you have a kernel update?
    If so pacman triggered mkinitcpio to rebuild your initramfs.  If anything went wrong at that state (this can happen) this would be the expected result.
    If you haven't done anything beyond a normal update then rebuild your initramfs and you should be set.
    Other things that may have been done to cause this is modifications to your bootloader (eg grub's menu.lst) or perhaps changes to fstab.

  • My phone got stuck in recovery mode after update to IOS 5.0.1, how can I solve it ?

    my phone got stuck in recovery mode after update to IOS 5.0.1, how can I solve it ?

    Read this
    http://pathumf.blogspot.com/2011/11/how-to-reboot-stuck-iphone-iphone-4s.html

Maybe you are looking for