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

The Shares Amount is 10065000

The cusip is 197231103
NOT OLD

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

update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '1.45' where entryId = '9754057'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '0' where entryId = '10526620'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '1.19' where entryId = '14873059'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '10.23' where entryId = '16513110'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '10.23' where entryId = '16838067'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '0.18' where entryId = '16938044'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '9.95' where entryId = '18239312'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '0' where entryId = '18823912'
update current13Fpositions set compid = '130602', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001010002' , percentOut = '0.05' where entryId = '23169533'
End Function

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

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