using dbeaver some custom sybase driver. row_number doesn't work:
incorrect syntax near 'over'
select row_number() over(), name
from table
tried also this
over (order by (select 1))
over (order by name)
tried variables:
select statement that assigns a value must not be combined with data-retrieval operations
declare @num int
set @num = 1
select name, @num = @num + 1
from table
cross join (select @num = 1)
Thinking about temporary table with primary int key