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

The Shares Amount is 4778000

The cusip is 758847404
NOT OLD

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

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '758847404'
Number of Rows :18

update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '66057650'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '68238798'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '66550893'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '64829405'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '64457237'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '69833577'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '71743701'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '89537721'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '91488683'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '93526077'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '95472697'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '97269957'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '99777409'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '102354758'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '105276621'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '106616578'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '108112218'
update archive13F set compid = '135567', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '0000099249' where entryId = '109993778'
End Function
The Script is complete, exiting....