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

The Shares Amount is 9000000

The cusip is 92537N207
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '92537N207'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '92537N207'
Number of Rows :34

update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '90500248'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '90365299'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '91523271'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '91675873'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '90901049'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '91474627'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '92130240'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '92389348'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '92986214'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '93153899'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '93107411'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '93683013'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '93914224'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '94180493'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '94396117'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '95279587'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '95238651'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '95622873'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '95645122'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '95949108'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '96427693'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '96234942'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '97958647'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '96228503'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '97648616'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '98044263'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '98086309'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '99133199'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '98630718'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '99147495'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '100064760'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '100617887'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '100649319'
update archive13F set compid = '167129', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006474' where entryId = '100654497'
End Function
The Script is complete, exiting....