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

The Shares Amount is 1002730000

The cusip is Q0169V100
NOT OLD

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

update current13Fpositions set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0.26' where entryId = '130231777'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'Q0169V100'
Number of Rows :16

update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90727652'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92757373'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '94897795'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '96957222'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '98904629'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '100864485'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '104205142'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '106144218'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '108300141'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '110952928'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '113722010'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '117813386'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '119099455'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '121485229'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '124487168'
update archive13F set compid = '145463', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '127353430'
End Function
The Script is complete, exiting....