S
S
Star Trooper2021-06-01 17:29:33
SQL
Star Trooper, 2021-06-01 17:29:33

What does -- mean in a SQL query?

There is a request:

SELECT * FROM users WHERE username = 'administrator'--' AND password = ''

What does '--' mean after administrator?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-06-01
@FirstTime

comment.
https://www.w3schools.com/sql/sql_comments.asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question