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

The Shares Amount is 10739000

The cusip is 05651W209
NOT OLD

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

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '05651W209'
Number of Rows :34

update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '71202962'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '73347764'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75325707'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77181015'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77986261'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79573567'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79877283'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79724628'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81266240'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '82997288'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83101005'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83560936'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83316720'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83809686'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '85516115'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '85082628'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '85925057'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87659877'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88873667'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88102996'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90595585'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90352896'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92327307'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92535188'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '94114078'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '95242170'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '97433473'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '96550155'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '98483080'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '98597940'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '102054839'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '101122672'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '105418487'
update archive13F set compid = '145547', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '113427783'
End Function
The Script is complete, exiting....