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

The Shares Amount is 130240000

The cusip is 92918V208
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '92918V208'
Number of Rows :34

update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.2' where entryId = '131563523'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.04' where entryId = '132010923'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.06' where entryId = '131420301'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '1.91' where entryId = '131049363'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '130229560'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.02' where entryId = '130011461'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '131910359'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '3.62' where entryId = '130499250'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.24' where entryId = '132158256'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '131984462'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '2.74' where entryId = '131639719'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.17' where entryId = '132248018'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '6.04' where entryId = '131085564'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '130062705'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.02' where entryId = '131240723'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '2.4' where entryId = '131934567'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.04' where entryId = '131796934'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '130478764'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '132695446'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '1.12' where entryId = '131804311'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '1.37' where entryId = '132109464'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '131720643'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '131135874'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.01' where entryId = '130860228'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '130565903'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '130272936'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.02' where entryId = '131439160'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.01' where entryId = '130807713'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.01' where entryId = '130922590'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '10.94' where entryId = '130986704'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '132384379'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0.01' where entryId = '132396035'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '132495709'
update current13Fpositions set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' , percentOut = '0' where entryId = '132519659'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '92918V208'
Number of Rows :1

update archive13F set compid = '167001', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001580864' where entryId = '128787881'
End Function
The Script is complete, exiting....