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

The Shares Amount is 563806000

The cusip is 066460304
NOT OLD

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

update current13Fpositions set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0.25' where entryId = '130401780'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '066460304'
Number of Rows :43

update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67501866'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67086132'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '66624753'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65294478'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '63575595'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '64867152'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '68619890'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '69863656'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '70326486'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '71154031'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72074163'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '73309138'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '74055407'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75044648'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75886244'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '76972793'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77750881'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '78835620'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79806097'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81170342'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81916039'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '82232649'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83943474'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '84848521'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '86040173'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87179172'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88148060'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '89272793'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '91144489'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '93276154'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '94893265'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '96891174'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '100267140'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '103197886'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '106359808'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '109899791'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '111761643'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '114200828'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '116185638'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '119493091'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '122315124'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '124883306'
update archive13F set compid = '145594', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '127715778'
End Function
The Script is complete, exiting....