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

The Shares Amount is 9000000

The cusip is 19761R703
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '19761R703'
Number of Rows :1

update current13Fpositions set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' , percentOut = '0.29' where entryId = '69982472'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '19761R703'
Number of Rows :29

update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '68356696'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '66982383'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '67701306'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '67334112'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '67467458'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '65672117'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '66365561'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '66589282'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '66350440'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '67369143'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '65585882'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '65348721'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '66681728'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '65315297'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '63722273'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '63703118'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '64075325'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '64009087'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '64550840'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '64650326'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '69149064'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '68442243'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '69128712'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '69941288'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '69590948'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '70852011'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '70858885'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '70690987'
update archive13F set compid = '159746', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004212' where entryId = '71802130'
End Function
The Script is complete, exiting....