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

The Shares Amount is 242483000

The cusip is 87235A101
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '87235A101'
Number of Rows :30

update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.28' where entryId = '1224616'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.04' where entryId = '1265512'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.67' where entryId = '1741474'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '1828213'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.31' where entryId = '2833398'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.43' where entryId = '3273532'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '1.22' where entryId = '3507198'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '2.57' where entryId = '3734192'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.47' where entryId = '6911054'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.84' where entryId = '7954786'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.78' where entryId = '8273625'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '5.47' where entryId = '8276620'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.06' where entryId = '9180511'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '9415460'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '9826227'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '10517102'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '10526667'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '10870725'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0' where entryId = '12191994'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.01' where entryId = '12196433'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.26' where entryId = '13626038'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.13' where entryId = '13626300'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.13' where entryId = '13626701'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.13' where entryId = '13627101'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.13' where entryId = '13627499'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.13' where entryId = '13627906'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.13' where entryId = '13628293'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '0.14' where entryId = '13628762'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '2.57' where entryId = '24144696'
update current13Fpositions set compid = '133655', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001304994' , percentOut = '1.2' where entryId = '24144896'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '87235A101'
Number of Rows :0

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