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

The Shares Amount is 6520000

The cusip is 74913G303
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74913G303'
Number of Rows :4

update current13Fpositions set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' , percentOut = '38.83' where entryId = '39846099'
update current13Fpositions set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' , percentOut = '13.8' where entryId = '41421976'
update current13Fpositions set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' , percentOut = '38.83' where entryId = '42249443'
update current13Fpositions set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' , percentOut = '0' where entryId = '42460143'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '74913G303'
Number of Rows :25

update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '67543642'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '67930036'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '65589438'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '66180324'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '64078761'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '64961592'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '64432599'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '64920607'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '69032033'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '70083991'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '71358083'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '72447440'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '73766011'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '73960091'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '74633385'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '76613055'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '75936851'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '76524991'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '79466629'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '79467082'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '79467961'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '79545867'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '78000334'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '77870785'
update archive13F set compid = '159680', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004146' where entryId = '78557121'
End Function
The Script is complete, exiting....