0

The following SQL:

SELECT * FROM extensiondata WHERE name="Post To Tumblr";

Generates this error:

ERROR:  column "Post To Tumblr" does not exist

I have a column called name. As far as I know where name="search" should find a row where the column name is equal to search. So what is amiss?

1 Answer 1

1
name = 'Post To Tumblr'

Use single quotes for values. Double quotes are used for identifiers.

http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.