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: : 131115
SELECT companies.* , sectors.level3des
							FROM companies, sectors
							WHERE companies.sector = sectors.level3num and compid = '131115'
The Shares Amount is 37950000
The cusip is 63935M208
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '63935M208'
Number of Rows :15
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '1163.79'
						where  entryId = '1309459'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '3731751'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '7.25'
						where  entryId = '10243543'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '27.01'
						where  entryId = '10822821'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '63.21'
						where  entryId = '11289705'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '52.82'
						where  entryId = '12319655'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '12561601'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '38.21'
						where  entryId = '12934660'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '13818181'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '264.22'
						where  entryId = '14378768'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '14959271'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '16955101'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '10.54'
						where  entryId = '16978656'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '18825307'
update current13Fpositions set 
						compid  = '131115', 
						sectorNum  = '604002', 
						sectorDes  = 'Internet Service Providers', 
						issuerCik  = '0001084750' ,
						percentOut = '0'
						where  entryId = '24521544'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '63935M208'
Number of Rows :0
End Function
The Script is complete, exiting....