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: : 130566
SELECT companies.* , sectors.level3des
							FROM companies, sectors
							WHERE companies.sector = sectors.level3num and compid = '130566'
The Shares Amount is 35240000
The cusip is M6778Q121
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = 'M6778Q121'
Number of Rows :2
update current13Fpositions set 
						compid  = '130566', 
						sectorNum  = '402006', 
						sectorDes  = 'Medical Instruments & Supplies', 
						issuerCik  = '0001004945' ,
						percentOut = '28.63'
						where  entryId = '51213205'
update current13Fpositions set 
						compid  = '130566', 
						sectorNum  = '402006', 
						sectorDes  = 'Medical Instruments & Supplies', 
						issuerCik  = '0001004945' ,
						percentOut = '0.03'
						where  entryId = '56367775'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = 'M6778Q121'
Number of Rows :3
update archive13F set 
						compid  = '130566', 
						sectorNum  = '402006', 
						sectorDes  = 'Medical Instruments & Supplies', 
						issuerCik  = '0001004945' 
						where  entryId = '65853025'
update archive13F set 
						compid  = '130566', 
						sectorNum  = '402006', 
						sectorDes  = 'Medical Instruments & Supplies', 
						issuerCik  = '0001004945' 
						where  entryId = '63895750'
update archive13F set 
						compid  = '130566', 
						sectorNum  = '402006', 
						sectorDes  = 'Medical Instruments & Supplies', 
						issuerCik  = '0001004945' 
						where  entryId = '51108055'
End Function
The Script is complete, exiting....