Cursors in SQL Server (T-SQL)

Pubblicato il: 29 maggio 2020
sul canale di: Biswa Ranjan
194
8

A SQL cursor is a database object that retrieves data from result sets one row at a time. The cursor in SQL can be used when the data needs to be updated row by row.

Steps involved in creating a cursor.

Declare – Declares the cursor with a name and the select statement which populates the result set
Open – Opens a cursor and populates the cursor by executing the select statement which is specified while declaring a cursor
Fetch – To retrieve a specific row from the cursor based on the fetch arguments like NEXT, FIRST, LAST, etc
Close – Closes the current result set of SQL Server cursor and can be reopened
Deallocate – Removes cursor reference and releases all the resources associated with a cursor


🗣 VISIT MY WEBSITE

Blog


Chapter Link
► http://www.biswaranjan.info/blog/Post...


In questa pagina del sito puoi guardare il video online Cursors in SQL Server (T-SQL) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Biswa Ranjan 29 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 194 volte e gli è piaciuto 8 spettatori. Buona visione!