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

The Shares Amount is 102812000

The cusip is 225756105
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '225756105'
Number of Rows :27

update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '178.72' where entryId = '1115199'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '108.99' where entryId = '1373754'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '59.45' where entryId = '1569586'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '0.03' where entryId = '1827335'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '3.76' where entryId = '2374344'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '48.63' where entryId = '2608191'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '0.1' where entryId = '2831390'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '0' where entryId = '3168017'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '14.42' where entryId = '3504286'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '25.27' where entryId = '3682528'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '202.05' where entryId = '3727961'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '0.03' where entryId = '4574683'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '0.92' where entryId = '5217647'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.44' where entryId = '6416137'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.35' where entryId = '7805482'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '3.39' where entryId = '8073257'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '10.18' where entryId = '9341187'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '4.29' where entryId = '9754187'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '21.38' where entryId = '10023443'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '431.24' where entryId = '10142706'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '29.85' where entryId = '10232445'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '0' where entryId = '12086270'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.66' where entryId = '16682105'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.66' where entryId = '16682427'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.37' where entryId = '16682767'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.37' where entryId = '16683082'
update current13Fpositions set compid = '133560', sectorNum = '304004', sectorDes = 'REIT - Diversified', issuerCik = '0000918958' , percentOut = '1.75' where entryId = '16683403'
End Function

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

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