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

The Shares Amount is 149824000

The cusip is 235811106
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '235811106'
Number of Rows :13

update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.45' where entryId = '1223732'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0' where entryId = '2337341'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.24' where entryId = '2831424'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0' where entryId = '3578998'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0' where entryId = '3685801'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0' where entryId = '3746692'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0' where entryId = '4077273'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.67' where entryId = '11778247'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.67' where entryId = '13244632'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.03' where entryId = '13628474'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.67' where entryId = '14193243'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.67' where entryId = '15730321'
update current13Fpositions set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' , percentOut = '0.67' where entryId = '23146161'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '235811106'
Number of Rows :2

update archive13F set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' where entryId = '6313038'
update archive13F set compid = '134949', sectorNum = '101003', sectorDes = 'Auto Parts', issuerCik = '' where entryId = '7531507'
End Function
The Script is complete, exiting....