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

The Shares Amount is 39199000

The cusip is 713569309
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '713569309'
Number of Rows :13

update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '4.67' where entryId = '1265213'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '87.92' where entryId = '1570121'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '2.72' where entryId = '2832852'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '92.68' where entryId = '3127947'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '32.03' where entryId = '3682814'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '9.92' where entryId = '3732471'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '166.02' where entryId = '3917471'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '20.11' where entryId = '5733705'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '223.67' where entryId = '6793635'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '3.49' where entryId = '7429272'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '149.66' where entryId = '7530152'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '0' where entryId = '9042126'
update current13Fpositions set compid = '132450', sectorNum = '503004', sectorDes = 'Management Services', issuerCik = '0000878556' , percentOut = '45.89' where entryId = '9158091'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '713569309'
Number of Rows :0

End Function
The Script is complete, exiting....