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

The Shares Amount is 28024000

The cusip is 74765E307
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74765E307'
Number of Rows :7

update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '0' where entryId = '44930362'
update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '86.07' where entryId = '51215538'
update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '216.08' where entryId = '54515597'
update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '81.58' where entryId = '57306057'
update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '273.57' where entryId = '57545827'
update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '0' where entryId = '62236786'
update current13Fpositions set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' , percentOut = '0' where entryId = '128821292'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '74765E307'
Number of Rows :40

update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '64101976'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '63651971'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '64926204'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '63623302'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '71768841'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '87819621'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '88028852'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '90145933'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '90341229'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '92211322'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '92277368'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '93076537'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '94262616'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '94303357'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '95180725'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '96377805'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '97600168'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '96245350'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '98833384'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '98864460'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '101048922'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '103122665'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '105656187'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '103713370'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '106188890'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '105947980'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '110790983'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '109182378'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '111472945'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '111315536'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '113909842'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '113870514'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '116585821'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '116834381'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '119301946'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '119587210'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '120942143'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '121808014'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '123977160'
update archive13F set compid = '133700', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001166380' where entryId = '124639678'
End Function
The Script is complete, exiting....