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

The Shares Amount is 9000000

The cusip is 04623A304
NOT OLD

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

update current13Fpositions set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' , percentOut = '1.11' where entryId = '42196178'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '04623A304'
Number of Rows :45

update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '67753625'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '66953960'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '65810328'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '66553733'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '66930032'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '63880289'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '64597788'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '69344389'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '69966438'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '71115049'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '71583805'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '72549124'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '73039970'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '74492502'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '75686136'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '76763365'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '77277310'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '79164538'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '80779190'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '82909571'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '85195075'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '86540440'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '88142547'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '89524649'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '91709045'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '90078142'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '91452766'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '90266345'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '92353194'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '93510986'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '93777804'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '93500436'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '94333642'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '94236818'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '95853694'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '96615588'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '96117873'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '97231861'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '98620998'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '98995393'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '100737521'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '101348226'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '102400552'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '104812866'
update archive13F set compid = '159585', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004051' where entryId = '104788639'
End Function
The Script is complete, exiting....