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

The Shares Amount is 9000000

The cusip is 74460D125
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74460D125'
Number of Rows :7

update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '0' where entryId = '39241729'
update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '187.78' where entryId = '42088351'
update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '73.53' where entryId = '42091171'
update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '68.89' where entryId = '42099240'
update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '34.09' where entryId = '42184082'
update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '0' where entryId = '42468663'
update current13Fpositions set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' , percentOut = '10.17' where entryId = '56974629'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '74460D125'
Number of Rows :11

update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '66065335'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '65230276'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '63448586'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '64110257'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '63526840'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '63648803'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '64113216'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '64960297'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '64109271'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '64960497'
update archive13F set compid = '159612', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004078' where entryId = '64950185'
End Function
The Script is complete, exiting....