1

I am trying to add some data to a PostgreSQL table using INSERT TO on pgAdmin4.

This is the code that I am trying to run;

INSERT INTO raw(id,object_id, confidence, timestamp)
VALUES  (1,9.0,0.012145853244069600,2020-05-20 13:02:52.281964)

And I am getting the following response;

ERROR: syntax error at or near "13"

I am quite new to SQL and PostgreSQL, so go easy on me. I assume that it is something wrong with handling time related data.

1 Answer 1

2

Use single quotes:

INSERT INTO raw(id,object_id, confidence, timestamp)
VALUES  (1,9.0,0.012145853244069600,'2020-05-20 13:02:52.281964')
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.