可以参考下面的例子,sqlUpdate和sqlColAlias连用来解决。更多用法可以参照元编程:https://www.dolphindb.cn/cn/help/200/Objects/Metaprogramming.html
t1=table(`A`A`B`B as symbol, 2021.04.15 2021.04.16 2021.04.15 2021.04.16 as date, 12 13 21 22 as price)
b = `price
c = t1.price
def ufunc(b){
return b+1}
sqlUpdate(t1, sqlColAlias(makeCall(ufunc,c),b)).eval()
t1