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

The Shares Amount is 516675000

The cusip is 826170102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '826170102'
Number of Rows :18

update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '2.59' where entryId = '1224555'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '8.79' where entryId = '1265412'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '10.69' where entryId = '1375195'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.82' where entryId = '1378534'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '1828137'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.33' where entryId = '2374693'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.03' where entryId = '2833190'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '3091377'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '3167875'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '3578957'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '3746641'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '4077309'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '4415262'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0' where entryId = '13625778'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.01' where entryId = '13626135'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.01' where entryId = '13626490'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.01' where entryId = '13626905'
update current13Fpositions set compid = '130581', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001006835' , percentOut = '0.01' where entryId = '13627308'
End Function

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

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