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

The Shares Amount is 25166000

The cusip is 45248A104
NOT OLD

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

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '45248A104'
Number of Rows :13

update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '72327427'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '75587180'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '90264115'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '92361568'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '94565018'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '96069354'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '98984381'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '101175942'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '103839166'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '105833599'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '110712620'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '115542130'
update archive13F set compid = '130985', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001063842' where entryId = '118669274'
End Function
The Script is complete, exiting....