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

The Shares Amount is 0

The cusip is G0398N128
NOT OLD

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

update current13Fpositions set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '129965610'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'G0398N128'
Number of Rows :9

update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '94222432'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '96556696'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '98413012'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '100706182'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '103274153'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '105675707'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '108337553'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '121467702'
update archive13F set compid = '145458', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '124229361'
End Function
The Script is complete, exiting....