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

The Shares Amount is 22956000

The cusip is 92763R104
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '92763R104'
Number of Rows :20

update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '215.7' where entryId = '3312090'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '4.97' where entryId = '3734970'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '39.99' where entryId = '4374480'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0' where entryId = '4417056'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0' where entryId = '9826176'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '15.05' where entryId = '10252563'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '204.46' where entryId = '11263762'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '184.3' where entryId = '12844835'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '114.29' where entryId = '12868975'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '114.34' where entryId = '13902802'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '5.18' where entryId = '14879254'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0' where entryId = '15008264'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '113.21' where entryId = '15246406'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0.03' where entryId = '16939630'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0' where entryId = '17801773'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '51.14' where entryId = '17859827'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '283.15' where entryId = '18659391'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '110' where entryId = '19068452'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0' where entryId = '23406335'
update current13Fpositions set compid = '130902', sectorNum = '603006', sectorDes = 'Semiconductor - MemoryChips', issuerCik = '0001050776' , percentOut = '0' where entryId = '24522948'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '92763R104'
Number of Rows :0

End Function
The Script is complete, exiting....