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

The Shares Amount is 16414000

The cusip is 49338N109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '49338N109'
Number of Rows :12

update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '9.75' where entryId = '2608298'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '13.53' where entryId = '3730544'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '0' where entryId = '4415390'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '21.75' where entryId = '5455427'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '11.74' where entryId = '6416406'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '22.65' where entryId = '9157996'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '4.31' where entryId = '9341738'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '1.34' where entryId = '9755540'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '275.81' where entryId = '10240062'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '0' where entryId = '11022794'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '341.85' where entryId = '11449687'
update current13Fpositions set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' , percentOut = '0' where entryId = '13401909'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '49338N109'
Number of Rows :2

update archive13F set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' where entryId = '6313075'
update archive13F set compid = '130621', sectorNum = '107001', sectorDes = 'Auto Parts Wholesale', issuerCik = '0001012393' where entryId = '6313150'
End Function
The Script is complete, exiting....