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

The Shares Amount is 156697000

The cusip is 91059D100
NOT OLD

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

update current13Fpositions set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' , percentOut = '10.33' where entryId = '130382174'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '91059D100'
Number of Rows :33

update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '67851024'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '66063451'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '71185791'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '73743096'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '72327446'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '75437457'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '76178740'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '77751811'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '78268701'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '79962011'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '80220932'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '81982988'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '82101517'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '85196981'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '84297192'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '86202649'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '86317528'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '88150550'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '88194862'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '90264342'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '90364549'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '92301478'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '92388517'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '94565228'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '94771499'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '96069604'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '97583230'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '99131868'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '102402287'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '104812776'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '123142039'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '124247626'
update archive13F set compid = '151556', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001096938' where entryId = '127697826'
End Function
The Script is complete, exiting....