'How to update the first row of a table in dolphindb?

Does anyone know how to write the where conditions for the first row for dolphindb?

update table set x=100 where ?


Solution 1:[1]

you can use the dolphindb function rowNo:

update t set x=100 where rowNo(x)=0

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bob