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

The Shares Amount is 7181000

The cusip is 29247F108
NOT OLD

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

update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '27.85' where entryId = '12252686'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '2.65' where entryId = '12709701'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '27.85' where entryId = '13732395'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '2.65' where entryId = '14073829'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '8.22' where entryId = '14873806'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '27.85' where entryId = '15149944'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '2.65' where entryId = '15635045'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '27.85' where entryId = '16597933'
update current13Fpositions set compid = '130606', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001010305' , percentOut = '27.85' where entryId = '18095597'
End Function

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

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