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

The Shares Amount is 452400000

The cusip is Q3018U109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = 'Q3018U109'
Number of Rows :3

update current13Fpositions set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' , percentOut = '0.21' where entryId = '47288401'
update current13Fpositions set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' , percentOut = '0' where entryId = '71773201'
update current13Fpositions set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' , percentOut = '5.53' where entryId = '129943494'
End Function

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

update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '66402739'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '68319171'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '67177147'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '65261549'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '63682325'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '69281444'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '121183873'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '121910358'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '124204623'
update archive13F set compid = '159958', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004424' where entryId = '127095535'
End Function
The Script is complete, exiting....