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

The Shares Amount is 9000000

The cusip is L0423Q116
NOT OLD

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

End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'L0423Q116'
Number of Rows :43

update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '99381859'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '99664685'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '99205955'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100016184'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100318078'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100392460'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100413344'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100167973'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100467840'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100471513'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100527480'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100538546'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100540271'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100544795'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '100287014'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '103011458'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102135874'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102857201'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102478325'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102985412'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102720066'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102999544'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102799041'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102811966'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102856662'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102909132'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102946716'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '103078282'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '102912512'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '103050012'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '103073978'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '104803859'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105520233'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '104829022'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105483265'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105524344'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105498662'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105509959'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105511149'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105513924'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105516707'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105631699'
update archive13F set compid = '167136', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006481' where entryId = '105682456'
End Function
The Script is complete, exiting....