473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SQL Update statement for 50,000 entries

I'm new to using SQL and in my current position I am doing some basic uploading to a Oracle database, to a sinlge table with approx 1.4 million rows. IBM is supporting the database and have provided me a solution for updating the table, but for some reason the update only allows 1000 rows to be updated at a time?

Here is the basic script that has been provided. The script has normally 1000 entries normal, but its been cut down for posting

update uphs.hu_codes
set code_date = '15-sep-06'
where code_id in (
'352124012484632',
'352124012484657',
'352124012484723',
'352124012484780',
'352124012484814',
'352124012484822',
);
commit;
exit;

Does update have in general a limitation of 1000 entries for update or iwould this be something IBM have implemented because when I try to do more then 1000 entires the script fails and produces a error?

If I have 50,000 entries to be updated is there a better way of doing this, instead of preparing 50 scripts?
Oct 28 '06 #1
1 2028
pks00
280 Expert 100+
Dont know, might have something to do with rollbacks.


Have u considered changing this to using PL/SQL ?

Create a cursor and a count
Loop thru the cursor and update records, perform a commit, say every 100 records
Oct 29 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Sonoman | last post by:
Hello all: What is wrong with my code? I want it to update the new text on the textbox on every iteration of my loop. But instead the textbox updates all info at the end of the loop. I also have...
2
by: Rima | last post by:
I have the following two tables : table a (commit_id, capital_market_id, chg_lst_date ) table b (b_seq_id,
0
by: Mickey Mouse | last post by:
My MySql experience is limited to simple updates and selects. I am creating a genealogical site based on Old Church birth and christening records. Currently I have over 70,000 entries in the...
0
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
5
by: devi | last post by:
hi, I am creating a simple bug tracker application (in Access db) and i created a hisotry table to log the bug history. The history table contains details like ProblemRecordNo (PRN),...
9
by: P3Eddie | last post by:
Hello all! I don't know if this can even be done, but I'm sure you will either help or suggest another avenue to accomplish the same. My problem may be a simple find duplicates / do something...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
2
by: jrsonner | last post by:
I have multiple entries in one table that I need to update the entries in the current production table with, to revert that data back before a migration so I can migrate that data again. The...
1
by: evilbungle | last post by:
Good Morning, Hopefully someone can help me with what I am assuming is a simple query that I simply can't get to work. I am new to using Visual Basic and I am using Visual Studio 2005,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.