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

The Shares Amount is 18008571000

The cusip is P9043M104
NOT OLD

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

update current13Fpositions set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' , percentOut = '0.02' where entryId = '70540361'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'P9043M104'
Number of Rows :22

update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '66836531'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '65416619'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '65177010'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '65029568'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '63363264'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '63497895'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '63933350'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '66864472'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '68598401'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '68577068'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '67219101'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '70066996'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '72135825'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '74206595'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '76437478'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '78097062'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '79767208'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '82042014'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '84062133'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '86009716'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '88018015'
update archive13F set compid = '153650', sectorNum = '102002', sectorDes = 'Business Equipment', issuerCik = '0001436223' where entryId = '90118435'
End Function
The Script is complete, exiting....