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

The Shares Amount is 29438000

The cusip is 458683109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '458683109'
Number of Rows :15

update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '694.11' where entryId = '1569835'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '4.08' where entryId = '1701191'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0.2' where entryId = '1827632'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '18.9' where entryId = '2832100'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '1.61' where entryId = '3505379'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '26.46' where entryId = '3682664'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '12' where entryId = '3730168'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0' where entryId = '4077223'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0' where entryId = '4415107'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0' where entryId = '5099646'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '2.23' where entryId = '5738179'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '18.11' where entryId = '6059232'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0' where entryId = '7536991'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0' where entryId = '9169458'
update current13Fpositions set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' , percentOut = '0' where entryId = '12187195'
End Function

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

update archive13F set compid = '132276', sectorNum = '602008', sectorDes = 'Technical & System Software', issuerCik = '0000351145' where entryId = '3847107'
End Function
The Script is complete, exiting....