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

The Shares Amount is 193620000

The cusip is 890030208
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '890030208'
Number of Rows :47

update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '50.69' where entryId = '7530333'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.06' where entryId = '8616913'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.08' where entryId = '9757537'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.93' where entryId = '10224121'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '11153053'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.99' where entryId = '11177360'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.77' where entryId = '11266681'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '12192739'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '12561640'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.94' where entryId = '12779270'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.88' where entryId = '12847733'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.01' where entryId = '13025324'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.09' where entryId = '13244213'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.69' where entryId = '13275592'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '13671920'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.89' where entryId = '14232588'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.8' where entryId = '14568722'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.03' where entryId = '14680445'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '14827504'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.1' where entryId = '14870605'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.09' where entryId = '14878813'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '15132827'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '3.11' where entryId = '15760395'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.89' where entryId = '15776028'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.2' where entryId = '15891319'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.76' where entryId = '15912373'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.01' where entryId = '16196859'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '16288721'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '16955251'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '2.27' where entryId = '17008218'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.86' where entryId = '17046070'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '6.94' where entryId = '17135375'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '4.08' where entryId = '17207341'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.1' where entryId = '17367996'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.77' where entryId = '17392909'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '17532887'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '1.26' where entryId = '17558321'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '17675469'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.83' where entryId = '17931565'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '18274446'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '18356357'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '3.86' where entryId = '18755872'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '18826331'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0.99' where entryId = '18944730'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '6.03' where entryId = '23178474'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '24522712'
update current13Fpositions set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' , percentOut = '0' where entryId = '29793246'
End Function

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

update archive13F set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' where entryId = '970591'
update archive13F set compid = '139447', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000838877' where entryId = '65629276'
End Function
The Script is complete, exiting....