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

The Shares Amount is 120425000

The cusip is 351465208
NOT OLD

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

update current13Fpositions set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' , percentOut = '0.13' where entryId = '53695891'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '351465208'
Number of Rows :20

update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '65633723'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '64015003'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '68562213'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '70288311'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '72207536'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '74123082'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '75819815'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '77780819'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '79945043'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '81686984'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '84004379'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '90814646'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '92569625'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '94372289'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '96559100'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '98786588'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '100816463'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '103291961'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '113981276'
update archive13F set compid = '151584', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001326252' where entryId = '116303819'
End Function
The Script is complete, exiting....