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

The Shares Amount is 10572780000

The cusip is Y0920U103
NOT OLD

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

update current13Fpositions set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' , percentOut = '0.01' where entryId = '42236775'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'Y0920U103'
Number of Rows :35

update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67212714'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '67282432'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65872447'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '65916521'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '64978611'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '64975171'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '69949189'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '69964435'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '70287165'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '71165586'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '71164880'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '72798380'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '73339954'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '73340108'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75049192'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '75048962'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77047536'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '77033442'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '78845761'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '79554806'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81185534'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '81185760'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83201325'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '83201467'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '84032732'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '84032945'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '84575217'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87178373'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87178594'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '87632112'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88008669'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '88008896'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '91720023'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '90379217'
update archive13F set compid = '145611', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '' where entryId = '92367328'
End Function
The Script is complete, exiting....