Double Hyphen/Dash in SQL-Injection. What are they used for? -


i'm learning how sql-injections work. on many teaching-websites there examples shown, such as

select fieldlist table field = 'x' , email null; --'; 

in field 'field' content thats going checked comes textfield or similar website. user-input in case x' , email null; -- use of -- ??

i saw few similar examples no explanation. missing fundamental?

ohh nevermind. -- used out-comment rest of query...


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -