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

The Shares Amount is 9000000

The cusip is 25154W407
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '25154W407'
Number of Rows :2

update current13Fpositions set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' , percentOut = '62' where entryId = '42193619'
update current13Fpositions set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' , percentOut = '1.7' where entryId = '51209895'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '25154W407'
Number of Rows :27

update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '66891009'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '66280556'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '64548152'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '64927198'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '64924451'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '64923571'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '64918223'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '69527589'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '71604269'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '72734300'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '74289945'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '76011550'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '78471930'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '80794151'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '82922385'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '85222469'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '87442701'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '89043413'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '90781184'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '92971566'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '94340387'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '97268083'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '99007028'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '101089023'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '103483332'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '106072326'
update archive13F set compid = '159650', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004116' where entryId = '109978025'
End Function
The Script is complete, exiting....