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

The Shares Amount is 199876000

The cusip is 472100106
NOT OLD

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

update current13Fpositions set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' , percentOut = '0' where entryId = '18273880'
update current13Fpositions set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' , percentOut = '0' where entryId = '18355791'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '472100106'
Number of Rows :9

update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '69634015'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '71777152'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '72362288'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '75558840'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '77535847'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '78533934'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '80959351'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '98130423'
update archive13F set compid = '151497', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001308710' where entryId = '100126840'
End Function
The Script is complete, exiting....