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

The Shares Amount is 4330000000

The cusip is Y07717104
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = 'Y07717104'
Number of Rows :5

update current13Fpositions set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '4.21' where entryId = '11065970'
update current13Fpositions set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '3.78' where entryId = '14648893'
update current13Fpositions set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0.03' where entryId = '16824886'
update current13Fpositions set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0.04' where entryId = '18492767'
update current13Fpositions set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '2.03' where entryId = '68942332'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'Y07717104'
Number of Rows :3

update archive13F set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67063575'
update archive13F set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65718123'
update archive13F set compid = '145585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '63957603'
End Function
The Script is complete, exiting....