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

The Shares Amount is 33593000

The cusip is 24379J200
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '24379J200'
Number of Rows :3

update current13Fpositions set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' , percentOut = '7.47' where entryId = '26256579'
update current13Fpositions set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' , percentOut = '94.82' where entryId = '31290835'
update current13Fpositions set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' , percentOut = '0.04' where entryId = '130458906'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '24379J200'
Number of Rows :20

update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '81686778'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '83866208'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '86101801'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '87802794'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '90134182'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '92204193'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '94253267'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '96027821'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '98416719'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '100988748'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '103549165'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '105763836'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '109067488'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '111854742'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '114286236'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '116760233'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '119645337'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '122409338'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '124954127'
update archive13F set compid = '142755', sectorNum = '102001', sectorDes = 'Appliances', issuerCik = '0001388855' where entryId = '127815268'
End Function
The Script is complete, exiting....