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

The Shares Amount is 15890000

The cusip is 502470107
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '502470107'
Number of Rows :23

update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '10.51' where entryId = '3730671'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '286.85' where entryId = '7429973'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '9.45' where entryId = '10240463'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '16.99' where entryId = '10835269'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '3.05' where entryId = '12287702'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '7.55' where entryId = '13717957'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0' where entryId = '13818033'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '30.25' where entryId = '14327635'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '29.14' where entryId = '14875635'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '7.55' where entryId = '15161654'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '9.44' where entryId = '16610756'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '7.55' where entryId = '16776225'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0.28' where entryId = '16938765'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0.61' where entryId = '17015582'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0' where entryId = '17801651'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0' where entryId = '18057887'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '7.55' where entryId = '18115826'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '11.76' where entryId = '18298357'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '3.77' where entryId = '22449264'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '7.38' where entryId = '23258865'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0' where entryId = '23406628'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0' where entryId = '23644567'
update current13Fpositions set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' , percentOut = '0' where entryId = '24521126'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '502470107'
Number of Rows :7

update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '65517982'
update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '63602823'
update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '67366039'
update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '70851181'
update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '70872546'
update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '73077940'
update archive13F set compid = '132410', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0000057139' where entryId = '74831289'
End Function
The Script is complete, exiting....