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

The Shares Amount is 54840000

The cusip is 268484102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '268484102'
Number of Rows :19

update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '39.73' where entryId = '268070'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '0' where entryId = '1367024'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '19.7' where entryId = '1569659'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '0' where entryId = '2314017'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '6.78' where entryId = '2831564'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '145.31' where entryId = '3031419'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '44.69' where entryId = '3504581'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '7.47' where entryId = '3728494'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '31.77' where entryId = '4113081'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '0.11' where entryId = '5086736'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '93.6' where entryId = '7429716'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '0' where entryId = '9169433'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '4.98' where entryId = '9341262'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '1.3' where entryId = '9754399'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '12.76' where entryId = '10023452'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '271.34' where entryId = '10142711'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '1.17' where entryId = '10223089'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '34.72' where entryId = '10233696'
update current13Fpositions set compid = '132752', sectorNum = '505002', sectorDes = 'AirDelivery & FreightServices', issuerCik = '0001001718' , percentOut = '0' where entryId = '12086277'
End Function

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

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