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

The Shares Amount is 69016000

The cusip is 746091107
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '746091107'
Number of Rows :3

update current13Fpositions set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' , percentOut = '10.91' where entryId = '1728310'
update current13Fpositions set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' , percentOut = '0' where entryId = '42460465'
update current13Fpositions set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' , percentOut = '1.45' where entryId = '78504583'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '746091107'
Number of Rows :9

update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '67696537'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '65985374'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '69109176'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '71669297'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '72175680'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '74754631'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '77471613'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '80862505'
update archive13F set compid = '137196', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001019787' where entryId = '83568485'
End Function
The Script is complete, exiting....