2

My simple WHERE query is not working. It says column "Exception" does not exist, but the column it type, that is only a value.

SQL Query:

select * from logs
where type = "Exception"

Picture of the error

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843

2 Answers2

3

Try this one:

SELECT *
FROM
   logs
WHERE
   type = 'Exception'
dbz
  • 409
  • 7
  • 19
1

As S-Man commented the answer is: " characters are for column names. You have to use ' characters.