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

The Shares Amount is 16019000

The cusip is 019456102
NOT OLD

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

update current13Fpositions set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '175.48' where entryId = '13457333'
update current13Fpositions set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '152.57' where entryId = '13666368'
update current13Fpositions set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '122.73' where entryId = '15247919'
update current13Fpositions set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '173.86' where entryId = '16854068'
update current13Fpositions set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '213.06' where entryId = '18100425'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '019456102'
Number of Rows :12

update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '70081983'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72000324'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '73955954'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75795751'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77749523'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79804909'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81719890'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83758512'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '85842893'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87773126'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '89931150'
update archive13F set compid = '145470', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92087333'
End Function
The Script is complete, exiting....