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

The Shares Amount is 4897725000

The cusip is 87304R100
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '87304R100'
Number of Rows :3

update current13Fpositions set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' , percentOut = '0.02' where entryId = '42249619'
update current13Fpositions set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' , percentOut = '0.02' where entryId = '57153651'
update current13Fpositions set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' , percentOut = '0.2' where entryId = '132254128'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '87304R100'
Number of Rows :41

update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '66885464'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '65078111'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '63473900'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '64961342'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '68577444'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '78153439'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '80260996'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '82370370'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '84501617'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '86574086'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '88435112'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '90817395'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '90560335'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '92572504'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '93563718'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '94375317'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '95059301'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '96562257'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '97304667'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '98789918'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '99807806'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '100819919'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '101002797'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '102366521'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '103290929'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '103561317'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '104553652'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '106114904'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '107850796'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '108947108'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '110551995'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '111952974'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '112394916'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '114339122'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '115644439'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '116732084'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '117168020'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '120337439'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '123820690'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '126347262'
update archive13F set compid = '130948', sectorNum = '502006', sectorDes = 'Rubber & Plastics', issuerCik = '0001057293' where entryId = '128203517'
End Function
The Script is complete, exiting....