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: : 145535
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '145535'
The Shares Amount is 0
The cusip is G06860103
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = 'G06860103'
Number of Rows :1
update current13Fpositions set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '' ,
percentOut = '0'
where entryId = '132577993'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = 'G06860103'
Number of Rows :8
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '110519695'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '113246961'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '115597083'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '118250521'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '121197769'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '123784853'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '126297172'
update archive13F set
compid = '145535',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '129279513'
End Function
The Script is complete, exiting....