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

The Shares Amount is 37487000

The cusip is 03674E108
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '03674E108'
Number of Rows :11

update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '1.07' where entryId = '1144770'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '37.05' where entryId = '1264124'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '10.27' where entryId = '1375156'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '0' where entryId = '2337331'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '53.35' where entryId = '2608495'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '10.76' where entryId = '2830770'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '0' where entryId = '3167935'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '0.42' where entryId = '3503341'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '0' where entryId = '3746552'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '0' where entryId = '4077263'
update current13Fpositions set compid = '131524', sectorNum = '602005', sectorDes = 'Information Technology Services', issuerCik = '0001163842' , percentOut = '0' where entryId = '4428229'
End Function

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

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