Hi all,
I have to update a table ACCOUNT with a msisdn and bdom (billing day of month) on production.
I have a flat file for example:
123456 26
231231 26
131231 26
312312 26
(This is the msisdn in column1 and bdom in column2.)
Normally I would then create a script which creates a file for example:
update ACCOUNT
set bdom=26
where msisdn='123456';
update ACCOUNT
set bdom=26
where msisdn='231231';
etc.. till all records done.
I would then load this in with SQL Plus.
Does this seem OK seeing as each file could have between 50,000 -> 200,000 update statements in?
Is there are more efficient way such as loading the data into a temp table and unloading this? If so could someone please talk me through this?
Thanks for any help. (newbie to SQL)
Lee
I have to update a table ACCOUNT with a msisdn and bdom (billing day of month) on production.
I have a flat file for example:
123456 26
231231 26
131231 26
312312 26
(This is the msisdn in column1 and bdom in column2.)
Normally I would then create a script which creates a file for example:
update ACCOUNT
set bdom=26
where msisdn='123456';
update ACCOUNT
set bdom=26
where msisdn='231231';
etc.. till all records done.
I would then load this in with SQL Plus.
Does this seem OK seeing as each file could have between 50,000 -> 200,000 update statements in?
Is there are more efficient way such as loading the data into a temp table and unloading this? If so could someone please talk me through this?
Thanks for any help. (newbie to SQL)
Lee