In DolphinDB script, I can generate SQL queries on the fly with functions like sql
, sqlCol
, etc. But I found that sqlCol
only support unary functions, the following script doesn't work.
t = table(1..10 as c0, 1..10 as c1)
query = sql(sqlCol([c0, c1], add))
ans = query.eval()
What if I have a binary function calculating two columns, what should I do to generate this kind of SQL queries?