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

The Shares Amount is 11436000

The cusip is 817320104
NOT OLD

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

update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '0' where entryId = '1828129'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '0.21' where entryId = '3506933'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '12.63' where entryId = '3733497'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '1.04' where entryId = '9757069'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '79.01' where entryId = '10248545'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '0.01' where entryId = '11068427'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '0' where entryId = '11115929'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '5.78' where entryId = '11450140'
update current13Fpositions set compid = '133116', sectorNum = '501001', sectorDes = 'Aerospace/Defense - Major Diversified', issuerCik = '0000095301' , percentOut = '0' where entryId = '12562376'
End Function

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

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