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

The Shares Amount is 10261000

The cusip is 71376K102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '71376K102'
Number of Rows :10

update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '63.48' where entryId = '3031700'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '0.49' where entryId = '3732476'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '88.34' where entryId = '5813949'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '43.86' where entryId = '9158092'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '9.75' where entryId = '9342119'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '15.05' where entryId = '10245668'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '10.62' where entryId = '14877101'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '0.05' where entryId = '23175728'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '0' where entryId = '24521871'
update current13Fpositions set compid = '130561', sectorNum = '603002', sectorDes = 'Printed Circuit Boards', issuerCik = '0001003950' , percentOut = '1261.2' where entryId = '46033244'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '71376K102'
Number of Rows :0

End Function
The Script is complete, exiting....