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

The Shares Amount is 6160000

The cusip is 194858205
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '194858205'
Number of Rows :1

update current13Fpositions set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' , percentOut = '958.81' where entryId = '5194231'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '194858205'
Number of Rows :15

update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '69992286'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '70603716'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '73659278'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '75739731'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '77647426'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '77986988'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '81646671'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '82404915'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '85635617'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '86776262'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '88873720'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '90312612'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '93664637'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '94680160'
update archive13F set compid = '135853', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000021759' where entryId = '97581230'
End Function
The Script is complete, exiting....