I
I
Ivan Ivanovich2020-01-11 11:18:15
SQL
Ivan Ivanovich, 2020-01-11 11:18:15

DB query not being processed?

Hello.
There is a table users:
id
email
name
For the test I did 1; [email protected];
test

SELECT email FROM users WHERE email = test@test.com

But I get an error:
#1064 - You have an error in your SQL syntax;
check the manual that corresponds to your MariaDB server version for the right syntax to use near '@test.com LIMIT 0, 50' at line 1
Thanks in advance to everyone who tries to help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman, 2020-01-11
@IwanQ

line. quotes

SELECT email FROM users WHERE email = '[email protected]'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question