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

The Shares Amount is 656695000

The cusip is 899905103
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '899905103'
Number of Rows :1

update current13Fpositions set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' , percentOut = '0.01' where entryId = '131100845'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '899905103'
Number of Rows :17

update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '63525702'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '89865647'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '89767261'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '90480567'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '93440551'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '95426898'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '97607539'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '106557293'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '109484488'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '111579132'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '114507587'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '116592334'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '118019394'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '120134346'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '122795540'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '125162937'
update archive13F set compid = '138400', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0001022097' where entryId = '127567635'
End Function
The Script is complete, exiting....