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

The Shares Amount is 209230000

The cusip is 339099103
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '339099103'
Number of Rows :48

update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '119.49' where entryId = '1115235'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.3' where entryId = '1264615'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '1599430'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '6.2' where entryId = '3031460'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '3685591'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '3.79' where entryId = '3729068'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '4418990'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.5' where entryId = '9341386'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.9' where entryId = '9754718'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '76.15' where entryId = '10235591'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '11153108'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '21.5' where entryId = '11271691'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '150.38' where entryId = '11340218'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '9.64' where entryId = '11449470'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '12327163'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '4.06' where entryId = '12481695'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '76.37' where entryId = '12894410'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.01' where entryId = '12987004'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '32.42' where entryId = '13454997'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.21' where entryId = '13467768'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '13678474'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.65' where entryId = '14327170'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '39.48' where entryId = '14601250'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '97.79' where entryId = '14619359'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.21' where entryId = '14661176'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '14823478'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.13' where entryId = '14874157'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '69.22' where entryId = '14950059'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '155.49' where entryId = '15090887'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '15262245'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.86' where entryId = '15449746'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '245.43' where entryId = '16027986'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '97.79' where entryId = '16049422'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.45' where entryId = '16117379'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '16615606'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.84' where entryId = '16834971'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.24' where entryId = '17015127'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '174.78' where entryId = '17447108'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '97.79' where entryId = '17465699'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '133.8' where entryId = '17521961'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0.45' where entryId = '17540629'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.4' where entryId = '18066817'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '18273619'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '0' where entryId = '18355530'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '129.12' where entryId = '19065120'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1294.11' where entryId = '19084174'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '210.04' where entryId = '19105089'
update current13Fpositions set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' , percentOut = '1.1' where entryId = '42234563'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '339099103'
Number of Rows :34

update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '970031'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '6313195'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '66945782'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '67696196'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '66068271'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '65225948'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '65239373'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '63525877'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '63497889'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '64024252'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '68794798'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '69180929'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '71668941'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '70133645'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '72125232'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '72175309'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '74016715'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '74754271'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '76086360'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '77575877'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '77884068'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '79725456'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '82008501'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '84027078'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '86119945'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '87989854'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '91924086'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '91958084'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '94066829'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '96250803'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '98425542'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '101010665'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '103425429'
update archive13F set compid = '131918', sectorNum = '101004', sectorDes = 'Recreational Vehicles', issuerCik = '0000314132' where entryId = '107204412'
End Function
The Script is complete, exiting....