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

The Shares Amount is 38043000

The cusip is 04364G106
NOT OLD

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

update current13Fpositions set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '132546156'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '04364G106'
Number of Rows :14

update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '101972489'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '103431237'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '105472330'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '105960898'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '108192112'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '108612281'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '110773998'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '111518736'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '112189273'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '113725264'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '115364058'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '116729884'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '118669620'
update archive13F set compid = '145495', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '128990131'
End Function
The Script is complete, exiting....