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

The Shares Amount is 114560000

The cusip is 66644R103
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '66644R103'
Number of Rows :1

update current13Fpositions set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' , percentOut = '8.73' where entryId = '42088535'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '66644R103'
Number of Rows :12

update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '69097775'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '71758136'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '93329992'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '95614247'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '97828924'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '100307583'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '102645705'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '105533013'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '107552315'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '110351241'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '113513132'
update archive13F set compid = '160349', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001533520' where entryId = '116042145'
End Function
The Script is complete, exiting....