Unix Technical Forum

sql window issues

This is a discussion on sql window issues within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Hi, I have always liked the fact that when I click on a table I get the code to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:23 PM
Antoine
 
Posts: n/a
Default sql window issues

Hi,
I have always liked the fact that when I click on a table I get the
code to (re)create the table. It just don't seem to work when I try it
in the sql window though... Even under 1.4.2, I regularly have queries
that I can't execute in the sql window - what gives? Today I had to
copy and paste a create table into a psql console on my remote
postgres server!
Can someone give me some idea of what is happening here?
Cheers
Antoine

--
This is where I should put some witty comment.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:23 PM
Dave Page
 
Posts: n/a
Default Re: sql window issues




On 6/4/06 21:30, "Antoine" <melser.anton@gmail.com> wrote:

> Hi,
> I have always liked the fact that when I click on a table I get the
> code to (re)create the table. It just don't seem to work when I try it
> in the sql window though... Even under 1.4.2, I regularly have queries
> that I can't execute in the sql window - what gives? Today I had to
> copy and paste a create table into a psql console on my remote
> postgres server!
> Can someone give me some idea of what is happening here?


Not without a better definition of "It just don't seem to work". What error
message do you get?

Regards, Dave.


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 08:23 PM
Antoine
 
Posts: n/a
Default Re: sql window issues

Here is a typical error:

CREATE TABLE etape
(
n_etp_code numeric(6) NOT NULL, -- identifiant de la table
t_etp_intitule varchar(50), -- nom en clair de l'étape
CONSTRAINT pk_etape PRIMARY KEY (n_etp_code)
)
WITHOUT OIDS;
ALTER TABLE etape OWNER TO "PRODUCTION";


La requête a inséré une ligne d'OID 0.

ERROR: syntax error at or near "numeric" at character 45

Could it be an encoding issue? That pgadmin doesn't like code from a copy paste?
Cheers
Antoine

On 06/04/06, Dave Page <dpage@vale-housing.co.uk> wrote:
>
>
>
> On 6/4/06 21:30, "Antoine" <melser.anton@gmail.com> wrote:
>
> > Hi,
> > I have always liked the fact that when I click on a table I get the
> > code to (re)create the table. It just don't seem to work when I try it
> > in the sql window though... Even under 1.4.2, I regularly have queries
> > that I can't execute in the sql window - what gives? Today I had to
> > copy and paste a create table into a psql console on my remote
> > postgres server!
> > Can someone give me some idea of what is happening here?

>
> Not without a better definition of "It just don't seem to work". What error
> message do you get?
>
> Regards, Dave.
>
>



--
This is where I should put some witty comment.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com