declare variable using select sql

Shalitha answered on May 6, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • declare table variable sql server
  • declare vriables in function sql
  • declare variable sql
  • mssql set variable
  • How do you assign a query result to a variable in SQL?
  • declare table variable sql
  • sql server set variable from select
  • create table variable in sql stored procedure
  • store select query result in variable sql server
  • sql declare table variable
  • sql declare variable
  • declare variable in stored procedure in sql server
  • sql save query as variable
  • select into table variable
  • how to declare a variable in sql
  • sql pass table name as variable
  • declare value in sql
  • declare variable in oracle sql
  • declare varchar sql server
  • tsql create table with variable name

  • declare variable using select sql

    0

    DECLARE @EmpName2 NVARCHAR(50)

    SELECT @EmpName2 = 'Ali'

    PRINT @EmpName2 

    Popularity 3/10 Helpfulness 1/10 Language sql
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 06 2023
    Shalitha
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.