No
You have to loop through allpaths and update that way. Something like this [totally untested] code:
{(` sv x,`price) set exec ?[sym=xxx;2;1]*price from x}peach allpaths[`:.;`tableName]
From: personal...@googlegroups.com [mailto:personal...@googlegroups.com]
On Behalf Of Carfield Yim
Sent: Thursday, March 18, 2021 7:30 AM
To: Kdb+ Personal Developers <personal...@googlegroups.com>
Subject: [personal kdb+] Question about fncol function in dbmaint
CAUTION: External email. Do not click links or open attachments unless you recognize the sender and know the content is safe.
HI all, it can apply some function to a column, but if it possible to apply some function to selected records of a column? Do something like "update price*2 from trade where sym=xxx", is that possible?
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
personal-kdbpl...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/personal-kdbplus/bd115a9e-dfdf-499d-b9e4-553e97fd4f13n%40googlegroups.com.