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

The Shares Amount is 9000000

The cusip is 06740L527
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '06740L527'
Number of Rows :2

update current13Fpositions set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' , percentOut = '0.14' where entryId = '51208102'
update current13Fpositions set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' , percentOut = '9.71' where entryId = '69269477'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '06740L527'
Number of Rows :41

update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '67870650'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '66095124'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '67856356'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '68054113'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '67688525'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '68023819'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '66364221'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '66284275'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '66319950'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '65765034'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '64112862'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '64202317'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '64590871'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '64550551'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '64333672'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '64649078'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '69557176'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '69966933'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '69374725'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '71401997'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '71606870'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '71404951'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '73425647'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '73598977'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '73748414'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '75248011'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '75456009'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '75060021'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '77003506'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '77380268'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '77295878'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '78636094'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '78668378'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '78860619'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '79194419'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '79291565'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '81504010'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '81495305'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '81496646'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '81531571'
update archive13F set compid = '159690', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004156' where entryId = '81537964'
End Function
The Script is complete, exiting....