# column "cat" does not exist (double quotes vs single quotes)

Source: https://sqlstreak.com/sql/errors/column-does-not-exist-double-quotes · Tested on PostgreSQL 18.6 and SQLite 3.54.1; results generated 2026-11-22.


**Short answer:** In SQL, single quotes mean text and double quotes mean a column or table name. `WHERE species = "cat"` asks for a column named cat. Write `WHERE species = 'cat'`.

## The exact messages

- PostgreSQL: `ERROR: column "cat" does not exist`

## How PostgreSQL prints it

```
ERROR:  column "cat" does not exist
LINE 2: WHERE species = "cat";
                        ^
```

## Why it happens

### Double quotes around a text value

The most common cause, especially for people coming from JavaScript or Python where both quote styles mean a string.

### A typo in a real column name

If the name in quotes is meant to be a column, check its spelling against the table.

### A column created with capitals in quotes

`CREATE TABLE t ("Name" text)` creates a case-sensitive column. You must then always write `"Name"`; plain `name` won't find it. Prefer lowercase names without quotes.

## The broken query

```sql
SELECT name FROM pets
WHERE species = "cat";
```

## The fix

```sql
SELECT name FROM pets
WHERE species = 'cat';
```

Single quotes make `'cat'` a text value, so the comparison works in every database.

| name |
| --- |
| Mochi |
| Luna |
| Pepper |
| Tofu |
| Socks |
| Olive |

(6 of 7 rows)

## What SQLite does instead

SQLite runs it: when no column called cat exists, it falls back to treating "cat" as text. That legacy quirk makes the query work by accident, and it silently changes meaning the day someone adds a column with that name.
