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

The Shares Amount is 59044000

The cusip is 144418100
NOT OLD

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

update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '2.42' where entryId = '1701046'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '94' where entryId = '2608162'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '0.06' where entryId = '2831101'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '0' where entryId = '3168027'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '11.7' where entryId = '3503873'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '26.8' where entryId = '3727149'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '1.41' where entryId = '3948423'
update current13Fpositions set compid = '131800', sectorNum = '304008', sectorDes = 'REIT - Office', issuerCik = '0000893577' , percentOut = '53.35' where entryId = '4177538'
End Function

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

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