Access data within a SQL Server cursor -


is possible access temp data created within sql server cursor? set conditions within cursor depends on data cursor has example:

cursor declaration.....

if (@column = (select max(id) cursor_name/table rid = @rid)) begin     .... 

i'm doing using table variable being read cursor wonder if there's better way achieve this, suggestions?

thanks


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -