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

The Shares Amount is 21170000

The cusip is 45811V105
NOT OLD

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

update current13Fpositions set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' , percentOut = '0' where entryId = '18824729'
update current13Fpositions set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' , percentOut = '9.45' where entryId = '130639793'
End Function

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

update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '106082158'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '109832581'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '111714228'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '114169448'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '116663689'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '120490462'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '122284305'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '124847315'
update archive13F set compid = '130652', sectorNum = '401006', sectorDes = 'Drug Related Products', issuerCik = '0001016504' where entryId = '127688521'
End Function
The Script is complete, exiting....