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

The Shares Amount is 134770000

The cusip is 475070108
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '475070108'
Number of Rows :17

update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0.3' where entryId = '969574'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '1.59' where entryId = '1144917'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0.75' where entryId = '1209281'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '2.03' where entryId = '1224064'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '5.88' where entryId = '1264856'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0' where entryId = '1599473'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0.02' where entryId = '1827664'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '3.24' where entryId = '2350183'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '3.83' where entryId = '2374491'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0.3' where entryId = '2827842'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '1.84' where entryId = '2832169'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '1.02' where entryId = '3280806'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '3.29' where entryId = '3505488'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0' where entryId = '3685760'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0' where entryId = '3746529'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0' where entryId = '4077224'
update current13Fpositions set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' , percentOut = '0' where entryId = '4415247'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '475070108'
Number of Rows :3

update archive13F set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' where entryId = '3688251'
update archive13F set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' where entryId = '4399215'
update archive13F set compid = '133305', sectorNum = '303003', sectorDes = 'Life & Health Insurance', issuerCik = '0000053347' where entryId = '5243660'
End Function
The Script is complete, exiting....