How do I add a new column to an existing table on disk in KDB? Is there a standard way of doing this?
thanks,
Sam
How do I add a new column to an existing table on disk in KDB? Is there a standard way of doing this?
thanks,
Sam
Hi Sam,
If the table is splayed, you could try looking at this link;
http://code.kx.com/wiki/JB:KdbplusForMortals/splayed_tables#1.2.5.4_Adding_a_Column_on_Disk
If the table is partitioned, there is a script called dbmaint.q which has a variety of useful functions, one of which is addcol.?
http://code.kx.com/wiki/Contrib/dbmaintdotq
Regards,
Paul