0

I am failing in creating tables via the PGadmin III SQL editor - even if the syntax is generated by the frontend:

CREATE TABLE testtable
(
   id integer, 
   "name" character varying(100)
) 
WITH (
  OIDS = FALSE
)
;

Error message is in german, but basically says that there's supposed to be a syntax error..

FEHLER:  Syntaxfehler bei »integer«
ZEILE 3:    id integer, 
                ^

********** Fehler **********

Any ideas ?

1
  • Works fine, no problem at all. Just copy-paste the above example and try again. Commented Jun 18, 2010 at 21:01

1 Answer 1

2

Works fine for me.

However I see the error is indicated at line 11. Is it possible the previous statement was not properly terminated and the interpreter chooses this point to give up?

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

1 Comment

That was a copy and paste fault ;-) But you're both right, it works after copying it in a new window. I tried to analyze the query before (and the editor is still throwing that same syntax error when analyzing). Probably it somehow got messed up in some way after analyzing.

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.