Jump to content
Sign in to follow this  
webcrab

Meaning of an equals sign in double quotes in the WHERE part

Recommended Posts

I was looking through this: https://www.w3schools.com/sql/sql_injection.asp and it says that ""="" in the WHERE part of any SQL statement evaluates to True. I don't understand why that happens, though, but I can get the same result set by providing an arbitrary integer instead of ""="". Can someone break this down for me please?

Share this post


Link to post
Share on other sites

Got it now. What "" = "" means is basically "an empty string to the left of the equals sign and the string to the right thereof are equal".

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...