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

The Shares Amount is 47036000

The cusip is 148867104
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '148867104'
Number of Rows :22

update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '1.55' where entryId = '1264284'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '95.67' where entryId = '1728235'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0.12' where entryId = '2207554'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '5.25' where entryId = '2831108'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '2.3' where entryId = '3503876'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '20.11' where entryId = '3727186'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0' where entryId = '4077346'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0.3' where entryId = '5086664'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '74.42' where entryId = '7429554'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '2.4' where entryId = '9753860'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '14.88' where entryId = '10023428'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '400.02' where entryId = '10142701'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '54.04' where entryId = '10230322'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '1540.54' where entryId = '11293919'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '288.23' where entryId = '11340207'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '2.4' where entryId = '11449198'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '9.58' where entryId = '11893753'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0' where entryId = '12086267'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0' where entryId = '12556443'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0' where entryId = '12562006'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0' where entryId = '13401777'
update current13Fpositions set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' , percentOut = '0' where entryId = '130458572'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '148867104'
Number of Rows :22

update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '77780213'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '79944448'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '81762742'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '83865948'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '86101539'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '87802538'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '90133929'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '92203946'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '94253016'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '96027573'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '98416467'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '100988495'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '103548900'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '105763539'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '109067185'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '111854435'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '114285930'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '116759928'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '119645022'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '122409018'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '124953796'
update archive13F set compid = '130690', sectorNum = '104001', sectorDes = 'Advertising Agencies', issuerCik = '0000883977' where entryId = '127814935'
End Function
The Script is complete, exiting....