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

The Shares Amount is 127381000

The cusip is 400518106
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '400518106'
Number of Rows :19

update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0.67' where entryId = '1144891'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '1.28' where entryId = '1223959'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '6.44' where entryId = '1264711'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '11.32' where entryId = '1375172'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0.98' where entryId = '1378515'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '44.62' where entryId = '1728266'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0' where entryId = '1827552'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0.02' where entryId = '2207678'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '10.49' where entryId = '2374449'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '14.27' where entryId = '2608255'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0.77' where entryId = '2827758'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '1.76' where entryId = '2831895'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0' where entryId = '3133949'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0' where entryId = '3190670'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '2.94' where entryId = '3505107'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '11.59' where entryId = '3729581'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0.4' where entryId = '3916995'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '27.63' where entryId = '4177540'
update current13Fpositions set compid = '131581', sectorNum = '602002', sectorDes = 'Business Software & Services', issuerCik = '0000857323' , percentOut = '0' where entryId = '6273454'
End Function

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

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