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

The Shares Amount is 0

The cusip is 124900309
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '124900309'
Number of Rows :3

update current13Fpositions set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '35982293'
update current13Fpositions set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '130635382'
update current13Fpositions set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '131376681'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '124900309'
Number of Rows :28

update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '66747221'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65515702'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '63419807'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '64967643'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '68542180'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '70098709'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72095384'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '74762690'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75751868'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '78588199'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79859899'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81820517'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83804133'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '85918574'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88471220'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90803229'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92167823'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '94212933'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '97413394'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '99918319'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '101980834'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '104634234'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '103892833'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '106101442'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '107211331'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '119241897'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '123207656'
update archive13F set compid = '145686', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '129592647'
End Function
The Script is complete, exiting....