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

The Shares Amount is 294794000

The cusip is 74406A102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74406A102'
Number of Rows :12

update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '1.09' where entryId = '1081066'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '1367176'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '2298360'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '2337375'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '4.49' where entryId = '2374650'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '3091385'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '3579062'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '3746569'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '4073692'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '4077377'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '4415267'
update current13Fpositions set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' , percentOut = '0' where entryId = '130460724'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '74406A102'
Number of Rows :22

update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '77781947'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '79946150'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '81762202'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '83867611'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '86103184'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '87804221'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '90135585'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '92205592'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '94254674'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '96029234'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '98418136'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '100990168'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '103550619'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '105765457'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '109069127'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '111856406'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '114287900'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '116761888'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '119647029'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '122411105'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '124955900'
update archive13F set compid = '130797', sectorNum = '302005', sectorDes = 'Credit Services', issuerCik = '0001035713' where entryId = '127817047'
End Function
The Script is complete, exiting....