To do multible compids, use the following script:
php /var/www/html_j3sg/institutions/ChangeCompidOfAllInstitutionalAfewCompaniesAtATime.php
Please note that the script mentioned above (ChangeCompidOfAllInstitutionalAfewCompaniesAtATime) only updates the current13FFilingpositions table, no archived tables.

This script actual updates 13F current table as well as both archive13F tables.

We got coming in compid: : 159679
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '159679'

The Shares Amount is 9300000000

The cusip is 74913G204
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74913G204'
Number of Rows :5

update current13Fpositions set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' , percentOut = '0.48' where entryId = '39846101'
update current13Fpositions set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' , percentOut = '0.02' where entryId = '42099247'
update current13Fpositions set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' , percentOut = '0.54' where entryId = '42249445'
update current13Fpositions set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' , percentOut = '0.01' where entryId = '47725923'
update current13Fpositions set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' , percentOut = '0.02' where entryId = '57153946'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '74913G204'
Number of Rows :6

update archive13F set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' where entryId = '66065362'
update archive13F set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' where entryId = '63753323'
update archive13F set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' where entryId = '64960296'
update archive13F set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' where entryId = '64116254'
update archive13F set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' where entryId = '64952613'
update archive13F set compid = '159679', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004145' where entryId = '64950183'
End Function
The Script is complete, exiting....