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

The Shares Amount is 64832000

The cusip is 640497202
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '640497202'
Number of Rows :5

update current13Fpositions set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' , percentOut = '0.05' where entryId = '3731783'
update current13Fpositions set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' , percentOut = '3.07' where entryId = '10243586'
update current13Fpositions set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' , percentOut = '1.87' where entryId = '14876467'
update current13Fpositions set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' , percentOut = '0' where entryId = '16938983'
update current13Fpositions set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' , percentOut = '0' where entryId = '18766130'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '640497202'
Number of Rows :6

update archive13F set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' where entryId = '97971486'
update archive13F set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' where entryId = '100433869'
update archive13F set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' where entryId = '100786102'
update archive13F set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' where entryId = '103267893'
update archive13F set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' where entryId = '105718949'
update archive13F set compid = '130756', sectorNum = '603007', sectorDes = 'Semiconductor - Specialized', issuerCik = '0001030485' where entryId = '108420722'
End Function
The Script is complete, exiting....