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

The Shares Amount is 0

The cusip is 590007100
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '590007100'
Number of Rows :17

update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '11054997'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '12465895'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '13275543'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '13933414'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '15249096'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '15593968'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '15760215'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '15912323'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '16859897'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '16963603'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '17392863'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '17931457'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '18161323'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '18306386'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '18755717'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '19064849'
update current13Fpositions set compid = '142445', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000000033' , percentOut = '0' where entryId = '33587996'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '590007100'
Number of Rows :0

End Function
The Script is complete, exiting....