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

The Shares Amount is 25821000

The cusip is 00374N107
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '00374N107'
Number of Rows :17

update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '17221906'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0.01' where entryId = '23166842'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '24011249'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '24518920'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '28138422'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '934.98' where entryId = '28225274'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '29960879'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '17.85' where entryId = '30669525'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '20.91' where entryId = '31224948'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '2.14' where entryId = '31890705'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '2.48' where entryId = '33324530'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '35974940'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '54.22' where entryId = '36485820'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '1.74' where entryId = '36507772'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '38479144'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '38489083'
update current13Fpositions set compid = '130635', sectorNum = '605002', sectorDes = 'Integrated Telecommunication Services', issuerCik = '0001043533' , percentOut = '0' where entryId = '41122939'
End Function

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

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