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

The Shares Amount is 9000000

The cusip is 253868707
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '253868707'
Number of Rows :5

update current13Fpositions set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' , percentOut = '777.78' where entryId = '38323974'
update current13Fpositions set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' , percentOut = '44.44' where entryId = '42099208'
update current13Fpositions set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' , percentOut = '1.11' where entryId = '42147830'
update current13Fpositions set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' , percentOut = '0.56' where entryId = '60995952'
update current13Fpositions set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' , percentOut = '0' where entryId = '64949144'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '253868707'
Number of Rows :12

update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '63448583'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '64110212'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '64950182'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '64924042'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '64920643'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '90814075'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '92569019'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '94371656'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '96558437'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '98785881'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '100815721'
update archive13F set compid = '159591', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004057' where entryId = '103292894'
End Function
The Script is complete, exiting....