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

The Shares Amount is 9680000

The cusip is 53261U304
NOT OLD

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

update current13Fpositions set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' , percentOut = '0' where entryId = '51354490'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '53261U304'
Number of Rows :17

update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '67538607'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '65245146'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '66592394'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '63450876'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '63775425'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '63758227'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64112283'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64991253'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64107447'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64921431'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64920321'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64923772'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64919355'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64918782'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64918233'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64828594'
update archive13F set compid = '130999', sectorNum = '504003', sectorDes = 'Industrial Electrical Equipment', issuerCik = '0001065860' where entryId = '64920148'
End Function
The Script is complete, exiting....