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

The Shares Amount is 54036000

The cusip is 879433852
NOT OLD

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

update current13Fpositions set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' , percentOut = '11.17' where entryId = '42115596'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '879433852'
Number of Rows :16

update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '66721642'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '64059638'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '73785026'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '76724819'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '78203491'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '80361360'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '83669271'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '81960043'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '84591768'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '85466772'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '84487397'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '86837583'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '89715471'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '88843317'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '91848139'
update archive13F set compid = '142846', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0000096966' where entryId = '101496249'
End Function
The Script is complete, exiting....