DB - Day6
Variables
1. Local Variables
DECLARE @x intSET @x =10SELECT @x = 9SELECT @X = age
FROM student
WHERE id = 7UPDATE student
SET name = 'Ali' ,@x=age
WHERE id = 8SELECT @x2. Global Variables
Examples
Table Variable
Dynamic Queries
Control Of Flow Statements
IF
IF EXISTS & IF NOT EXISTS
Begin Try & Begin Catch
WHILE
CASE IIF
Windowing Function
Functions
Built-In Functions
User Defined Functions
Scalar Function
Inline Table Value Function
Multi-statement Table valued function
Last updated