🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2291

Re: ayuda SQL

#2291
From: Willi E Coyote
Date: Tue, 17 Jan 2006 17:21
30 lines
2159 bytes
no vas a poder por que es una palabra reservada

"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: <dqj9i5$ah1$1@spawn.telmexchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!news.telmexchile.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
From: "Willi E Coyote" <jherbias[sacar esto ]@terra.cl>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda SQL
Date: Tue, 17 Jan 2006 14:21:57 -0300
Organization: Telmex Chile
Lines: 32
Message-ID: <dqj9i5$ah1$1@spawn.telmexchile.cl>
References: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>
NNTP-Posting-Host: fw.cenizas.cl
X-Trace: spawn.telmexchile.cl 1137518981 10785 200.27.137.10 (17 Jan 2006 17:29:41 GMT)
X-Complaints-To: usenet@rdc.cl
NNTP-Posting-Date: Tue, 17 Jan 2006 17:29:41 +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
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!news.telmexchile.cl!not-for-mail