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

The Shares Amount is 9000000

The cusip is G6463T130
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = 'G6463T130'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = 'G6463T130'
Number of Rows :63

update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '90180211'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '90168321'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91173373'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91431175'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91449569'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91311703'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91327674'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91497910'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91568194'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91381417'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '90745099'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91944995'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91625574'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91504500'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91258470'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91382663'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91833053'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91250811'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91117476'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '92365458'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93790206'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93835552'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '92945592'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93874295'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '92238760'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93792270'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93151355'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93336135'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93538383'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '92818211'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93327758'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93825842'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93456085'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93456841'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93504939'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93545062'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93585991'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93839323'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '93838873'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95276992'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95023670'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '94869466'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95597220'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95986755'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95894205'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95386512'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95974413'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95812521'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95813446'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95983145'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '95946196'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '96225775'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '96885500'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '97621677'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '98144741'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '98247598'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '98181549'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '98165012'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '98165436'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '100064720'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '100077397'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '91296796'
update archive13F set compid = '167131', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000006476' where entryId = '128359270'
End Function
The Script is complete, exiting....