🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2472

Re: ayuda SQL

#2472
From: Lakrom
Date: Mon, 09 Jan 2006 23:55
32 lines
2121 bytes
Utiliza el nombre de la tabla entre llaves
[END]
Suerte.

"lokke" <cristian.lokki@gmail.com> escribi� en el mensaje 
news:1136831350.613432.85260@g47g2000cwa.googlegroups.com...
Holas.

Ojal� alguien pueda ayudarme.
Estoy creando una tabla en SQL  (en lo cual tengo poca experiencia) con
Postgres, y trato de crear un campo llamado 'end'. Sin embargo, SQL
arroja error de sintaxis cerca de 'end'.  Si le cambio el nombre a
'ende', funciona sin problemas, por lo que creo que 'end' debe ser
alg�n tipo de keyword (o palabra clave).

Preguntas:
1.- No se puede crear un campo llamado 'end'?
2.- Hay alguna forma de solucionar esto?  (no puedo cambiar el nombre,
pues esta base de datos la ocupa otro programa).

La tabla la creo as�:
CREATE TABLE cdr (
        Number BIGSERIAL PRIMARY KEY,
callTime TIMESTAMP with time zone NOT NULL DEFAULT now(),
accountcode VARCHAR(80) NOT NULL default '',
start           VARCHAR(80) NOT NULL default '',
answer          VARCHAR(80) NOT NULL default '',
end             VARCHAR(80) NOT NULL default '',
duration INTEGER NOT NULL default '0',
);

Muchas gracias a qui�n me pueda responder....!!!
Technical Details
Message-ID: <dpusvn$280$1@proxy.ifxnw.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news2.ifxnw.cl!not-for-mail
References: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,be0bc3866a483798
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news2.ifxnw.cl!not-for-mail
From: "Lakrom" <lakrom@terra.cl>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda SQL
Date: Mon, 9 Jan 2006 20:55:28 -0300
Organization: IFX Networks News Server
Lines: 34
Message-ID: <dpusvn$280$1@proxy.ifxnw.cl>
References: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>
NNTP-Posting-Host: 200.73.77.124
X-Trace: proxy.ifxnw.cl 1136850744 2304 200.73.77.124 (9 Jan 2006 23:52:24 GMT)
X-Complaints-To: abuse@ifxnetworks.com
NNTP-Posting-Date: Mon, 9 Jan 2006 23:52:24 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original