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

The Shares Amount is 0

The cusip is 03074G109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '03074G109'
Number of Rows :5

update current13Fpositions set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '12956642'
update current13Fpositions set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '13975755'
update current13Fpositions set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '15626628'
update current13Fpositions set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '17527040'
update current13Fpositions set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0' where entryId = '18664457'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '03074G109'
Number of Rows :17

update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '86606621'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87941644'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90491224'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90813131'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92568038'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92612100'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '94370621'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '96557360'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '98784736'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '99314720'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '100814539'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '102963762'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '103291102'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '118099103'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '121122902'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '123719622'
update archive13F set compid = '145474', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '126838344'
End Function
The Script is complete, exiting....