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

The Shares Amount is 9000000

The cusip is 06740P320
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '06740P320'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '06740P320'
Number of Rows :30

update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '66035275'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '67817610'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '68083922'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '67700020'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '68054123'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '66855733'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '66364215'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '66319960'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '66857641'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '65307535'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '65149459'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '63692180'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '64590881'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '64649083'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '68865998'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '69940844'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '69610326'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '69557186'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '69590692'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '70598958'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '71402007'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '71802069'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '71187427'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '72373173'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '73425657'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '73322019'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '75248021'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '75060032'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '77629034'
update archive13F set compid = '159794', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004260' where entryId = '77603287'
End Function
The Script is complete, exiting....