Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 927787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:54:26+00:00 2026-05-15T19:54:26+00:00

Unlike programming languages, SQL doesn’t allow variable to be assigned a value using the

  • 0

Unlike programming languages, SQL doesn’t allow variable to be assigned a value using the following syntax ( instead we must use SET or SELECT ):

@i=100; //error

Is there particular reason why SQL doesn’t allow this?

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:54:27+00:00Added an answer on May 15, 2026 at 7:54 pm

    The first reason that comes to mind is that SQL uses the ‘=’-sign for both comparing of values as setting of values. This means that it requires a different syntax to distinguish between comparing and setting of the values. In (some) other programming there is a distinction between setting and comparing the values with the use of the ‘=’-sign and the ‘==’-sign.
    For example in SQL:

    SET @a = 100 --To set the value of @a.
    if (@a = 100) -- To compare the value of @a.
    

    For example in C#:

    a = 100; //To set the value of a.
    if (a == 100) //To compare the value of a.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read that unlike programming languages, XSLT does not allow us to set a
What I mean by this question is unlike other programming languages where I could
This RFC mentions Unlike many programming languages Perl does not currently implement true multiline
Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
The fine manual states thus: Unlike some other languages, backticks cannot be used within
I'm using Git for version control and unlike SVN I have not come across
Unlike the iPhone simulator, the Android emulator doesn't look like an Android device. If
I have a model not unlike the following: class Bike(models.Model): made_at = models.ForeignKey(Factory) added_on
I have an app using ListView not unlike Explorer does, but when I set
Unlike (most) RISC arch, x86 instructions have variable length. The start/end of an instruction

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.