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

The Shares Amount is 0

The cusip is D06216317
NOT OLD

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

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

Retrive Rows from Table:
select * from archive13F where cusip = 'D06216317'
Number of Rows :40

update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67696007'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65984840'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67561887'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65394522'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '64385053'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '64024068'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '68918290'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '69108671'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '71668735'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '71017909'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '70776394'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72175103'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72942002'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72807127'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '74754069'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75119504'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77575899'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77066467'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79564107'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81548439'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '82761143'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '84381138'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87625823'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '89346892'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90862074'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '97814509'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '100299274'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '102639829'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '108826412'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '111407025'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '112302401'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '113846232'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '115494710'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '116691932'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '117099673'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '119578910'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '119059972'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '121895995'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '124794850'
update archive13F set compid = '145570', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '127305692'
End Function
The Script is complete, exiting....