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

The Shares Amount is 1121897000

The cusip is 06423A103
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '06423A103'
Number of Rows :2

update current13Fpositions set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' , percentOut = '0' where entryId = '9042120'
update current13Fpositions set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' , percentOut = '0' where entryId = '130458279'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '06423A103'
Number of Rows :24

update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '69255478'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '70511258'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '77779975'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '79944212'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '81762655'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '83865711'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '86101307'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '87802306'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '90133707'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '92203729'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '94252796'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '96027351'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '98416240'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '100988269'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '103548668'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '105763278'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '109066920'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '111854171'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '114285660'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '116759660'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '119644745'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '122408731'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '124953507'
update archive13F set compid = '131006', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001067092' where entryId = '127814647'
End Function
The Script is complete, exiting....