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

The Shares Amount is 85800000

The cusip is 139793103
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '139793103'
Number of Rows :16

update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0.13' where entryId = '3727075'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0' where entryId = '11708590'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '2.44' where entryId = '12852891'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0' where entryId = '13506694'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0' where entryId = '14300183'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '2.44' where entryId = '16030998'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0.02' where entryId = '16193904'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0' where entryId = '16291020'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '5.45' where entryId = '17196226'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '1.85' where entryId = '17966399'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '44.26' where entryId = '17966798'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0.02' where entryId = '17977561'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '1.85' where entryId = '17994770'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0' where entryId = '18922413'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '43.49' where entryId = '19084196'
update current13Fpositions set compid = '131028', sectorNum = '301009', sectorDes = 'Domestic Regional Banks', issuerCik = '0001071992' , percentOut = '0' where entryId = '24519574'
End Function

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

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