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

The Shares Amount is 18400000

The cusip is 966388100
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '966388100'
Number of Rows :10

update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '104.59' where entryId = '42082923'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '26.52' where entryId = '42111414'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '5.86' where entryId = '42171175'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '34.46' where entryId = '42172651'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '13.05' where entryId = '42189895'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '0.16' where entryId = '42204783'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '0' where entryId = '42264652'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '9.82' where entryId = '42499385'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '0' where entryId = '47624200'
update current13Fpositions set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' , percentOut = '1.29' where entryId = '51218134'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '966388100'
Number of Rows :2

update archive13F set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' where entryId = '65273176'
update archive13F set compid = '160350', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001537058' where entryId = '63958515'
End Function
The Script is complete, exiting....