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: : 132313
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '132313'

The Shares Amount is 193399000

The cusip is 147339105
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '147339105'
Number of Rows :8

update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '25.2' where entryId = '1569477'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '0' where entryId = '1827208'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '1.06' where entryId = '3727168'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '1.65' where entryId = '7429551'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '0.05' where entryId = '8272882'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '1.02' where entryId = '9341046'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '0.34' where entryId = '9753853'
update current13Fpositions set compid = '132313', sectorNum = '1001003', sectorDes = 'Gas Utilities', issuerCik = '0000018072' , percentOut = '4.79' where entryId = '10230279'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '147339105'
Number of Rows :0

End Function
The Script is complete, exiting....