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

The Shares Amount is 0

The cusip is Y38472125
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = 'Y38472125'
Number of Rows :1

update current13Fpositions set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' , percentOut = '0' where entryId = '11038432'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'Y38472125'
Number of Rows :9

update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '67212778'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '68073043'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '65872360'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '64975246'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '69176533'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '69949254'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '71164947'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '73340177'
update archive13F set compid = '146366', sectorNum = '101002', sectorDes = 'Auto Manufacturers', issuerCik = '' where entryId = '75620886'
End Function
The Script is complete, exiting....