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

The Shares Amount is 59972000

The cusip is 208287102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '208287102'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '208287102'
Number of Rows :10

update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72159366'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '74052303'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75994251'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '78130132'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '80201388'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81911921'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83933864'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '86037499'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88048736'
update archive13F set compid = '145331', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90633718'
End Function
The Script is complete, exiting....