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

The Shares Amount is 103782000

The cusip is 74972L102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74972L102'
Number of Rows :27

update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.15' where entryId = '9756763'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '2.22' where entryId = '10246910'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '11115915'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '2.41' where entryId = '12655459'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '13818453'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.99' where entryId = '14328313'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '14877550'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '92.5' where entryId = '14952188'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '1.01' where entryId = '15071209'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '1.01' where entryId = '15085172'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.97' where entryId = '15999265'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.2' where entryId = '16939269'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.37' where entryId = '17016204'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '7.66' where entryId = '17859772'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '18659092'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.11' where entryId = '19054668'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.77' where entryId = '23176897'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '23644524'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0.07' where entryId = '24138770'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '24522192'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '24927544'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '0' where entryId = '29312281'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '3.71' where entryId = '31886866'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '5.37' where entryId = '32486027'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '11.29' where entryId = '32908523'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '6.76' where entryId = '36485904'
update current13Fpositions set compid = '151538', sectorNum = '503006', sectorDes = 'Rental & Leasing Services', issuerCik = '0001389305' , percentOut = '4.35' where entryId = '36507805'
End Function

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

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