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

The Shares Amount is 0

The cusip is 449187707
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '449187707'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '449187707'
Number of Rows :19

update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '66856216'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '65207060'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '78501045'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '80289090'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '82131164'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '84169923'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '86230641'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '88451429'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '90286907'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '92318976'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '94351528'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '96509485'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '99025132'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '101385854'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '103871327'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '106258824'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '111645173'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '115380336'
update archive13F set compid = '151245', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '116744928'
End Function
The Script is complete, exiting....