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

The Shares Amount is 23847000

The cusip is 759148109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '759148109'
Number of Rows :62

update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '1828064'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '40.47' where entryId = '2420574'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '3685681'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '12.2' where entryId = '3733058'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '4077381'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '8.05' where entryId = '5086249'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '208.39' where entryId = '7530205'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '8159780'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '6.8' where entryId = '9342232'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '1.2' where entryId = '9756814'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '12.35' where entryId = '10223886'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '316.99' where entryId = '10247229'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '206.6' where entryId = '11112494'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.8' where entryId = '11125825'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '37.25' where entryId = '11450073'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '12328311'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '119.99' where entryId = '12987350'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '142' where entryId = '13151104'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.81' where entryId = '13468227'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '13678716'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '13818431'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '8.16' where entryId = '14328267'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '140.85' where entryId = '14333067'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.81' where entryId = '14661779'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '14826495'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '3.29' where entryId = '14877638'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.8' where entryId = '14913275'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.23' where entryId = '15098960'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.23' where entryId = '15242453'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '15262489'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '3.87' where entryId = '15450451'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.8' where entryId = '15914897'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.3' where entryId = '16117979'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '16615855'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.23' where entryId = '16632249'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.8' where entryId = '16786760'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '3.82' where entryId = '16835677'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.02' where entryId = '16939247'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '30.67' where entryId = '16982912'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.6' where entryId = '17016233'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '17074991'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '17227936'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.3' where entryId = '17541254'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '16.11' where entryId = '18177419'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '6.54' where entryId = '18291485'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '3.99' where entryId = '18298790'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0.25' where entryId = '19116193'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '7.47' where entryId = '19264411'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '7.38' where entryId = '19684770'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '7.38' where entryId = '19697835'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '19880691'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '17.32' where entryId = '22449411'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '16.61' where entryId = '23176655'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '24504976'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '24522103'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '67.22' where entryId = '24569776'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '26595391'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '11.32' where entryId = '26734628'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '29961096'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '18.46' where entryId = '30099359'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '32227813'
update current13Fpositions set compid = '130624', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0000812191' , percentOut = '0' where entryId = '41123182'
End Function

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

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