dbTalk Databases Forums  

Cannot Create tables - on Windows XP

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Cannot Create tables - on Windows XP in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ishaame@bluewin.ch
 
Posts: n/a

Default Cannot Create tables - on Windows XP - 10-27-2004 , 02:06 AM






I have installed Postgresql 8.0 bet3 successfully. But whenever I want to
create a table, be it with psql or pgAdminIII, I get the following error
message: "Error:syntax error at or near "("".
Could anyone help.

Thanks in advance
Ibrahim Shaamne


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #2  
Old   
ishaame@bluewin.ch
 
Posts: n/a

Default Re: Cannot Create tables - on Windows XP - 10-27-2004 , 04:33 AM






Thanks.
I think I had syntax wrong while creating a table under psql. Now I have
managed to create a table. But the problem persists under pgAdminIII. Here
is the SQL created by pgAdminIII when attempting to create a table under
it:

CREATE TABLE "Maneno"
(
"Neno" "char"(50),
"Neno_Asilia" "char"(50) NOT NULL,
"Lugha_ya_Neno" "char"(20) NOT NULL,
"Tafsiri_Neno" "char"(60),
"Lugha_ya_Tafsiri" "char"(20)
) WITHOUT OIDS;
ALTER TABLE "Maneno" OWNER TO ibrahim;

Unfortunately I cannot edit the created SQL

Thanks
Ibrahim

Michael Glaesemann wrote:

Quote:
On Oct 27, 2004, at 3:46 PM, ishaame (AT) bluewin (DOT) ch wrote:

I have installed Postgresql 8 beta3 on my windows machine, and everytime
I issue a commond to create a table I get this message "Error: syntax
error
at or near "(" " I get this message in both pgsql and pgAdminIII.

Could anyone out there help.


I'm willing to help, but without seeing the actual command you're using
to try to create a table, it's really hard. Could you show a complete example
of what you're doing?
Quote:
Michael
Michael Glaesemann
grzm myrealbox com


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
  #3  
Old   
Michael Glaesemann
 
Posts: n/a

Default Re: Cannot Create tables - on Windows XP - 10-27-2004 , 04:43 AM




On Oct 27, 2004, at 6:33 PM, ishaame (AT) bluewin (DOT) ch wrote:

Quote:
I think I had syntax wrong while creating a table under psql. Now I
have
managed to create a table.
Glad to hear you got it working in psql!

Quote:
But the problem persists under pgAdminIII. Here
is the SQL created by pgAdminIII when attempting to create a table
under
it:
Unfortunately, I have no experience with PgAdminIII. I don't know if
it's been updated to work with v8.0 (though I'm sure there are plans to
do so if it hasn't been done already).

Quote:
"Neno" "char"(50),
It appears the problem is with the quotes around "char". I've never
seen types quoted like this before (though that doesn't mean it's not
valid). Removing the double quotes allowed it to work on my 8.0beta1
install.

However, like you said, you probably can't change the SQL generated by
PgAdminIII. I'm curious to read what people experience with PgAdminIII
have to say.

Good luck,

Michael Glaesemann
grzm myrealbox com


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.