-2

i'm using for the first times Postgres and i'm experiencing problems adding a new row by SQL code.

Here is my table structure:

enter image description here

And here is the code that i'm executing:

INSERT INTO recensione (testo, voto, utente, merchant) VALUES
('this is a text', 2, 'username', 1234567);

I get this error:

ERROR:  syntax error at or near "INTO" LINE 1: SELECT COUNT(*) AS     total FROM (INSERT INTO recensione (testo...

I'm sure it is easy to solve, but i'm getting crazy about it. Thank you.

smartmouse
  • 13,912
  • 34
  • 100
  • 166

1 Answers1

2

it happens only when checkbox "Paginate results" on query page is set to on. Try unchecking that.

try looking at this example. Postgres sql insert query syntax error from phpPgAdmin

Community
  • 1
  • 1
niketshah90
  • 199
  • 1
  • 10