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

The Shares Amount is 39373000

The cusip is 481138105
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '481138105'
Number of Rows :12

update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '0.01' where entryId = '1827673'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '8.43' where entryId = '3682679'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '10.73' where entryId = '3730442'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '3.05' where entryId = '5455423'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '25.91' where entryId = '7429945'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '111.13' where entryId = '7529914'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '6.06' where entryId = '9341717'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '1.22' where entryId = '9755487'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '18.36' where entryId = '10239783'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '0' where entryId = '13817997'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '0' where entryId = '14875459'
update current13Fpositions set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' , percentOut = '0' where entryId = '15237971'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '481138105'
Number of Rows :3

update archive13F set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' where entryId = '3688094'
update archive13F set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' where entryId = '4399286'
update archive13F set compid = '130798', sectorNum = '104008', sectorDes = 'Publishing', issuerCik = '0001035815' where entryId = '5240380'
End Function
The Script is complete, exiting....