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

The Shares Amount is 45191000

The cusip is 740706106
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '740706106'
Number of Rows :9

update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '8.1' where entryId = '1265264'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0.01' where entryId = '1828017'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0.06' where entryId = '2832938'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0' where entryId = '3167880'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0' where entryId = '3578962'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0' where entryId = '3685671'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0' where entryId = '3746649'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0' where entryId = '4415270'
update current13Fpositions set compid = '132971', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0001011699' , percentOut = '0' where entryId = '4428156'
End Function

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

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