0

When I did not put the backticks on the table name, it did not select the table.

SELECT * FROM `member` WHERE email = ?
Dharman
  • 30,962
  • 25
  • 85
  • 135

1 Answers1

0

Because in some SQL syntax member or MEMBER is a reserved keyword. In order to distinguish your table name with member you need to use backticks.

`member` (instead of) member

https://learn.microsoft.com/en-us/sql/t-sql/language-elements/reserved-keywords-transact-sql?view=sql-server-ver15

haron68
  • 741
  • 1
  • 5
  • 19