Article View: chile.comp.programacion
Article #2470ayuda SQL
From: lokke
Date: Mon, 09 Jan 2006 19:04
Date: Mon, 09 Jan 2006 19:04
26 lines
2116 bytes
2116 bytes
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:
<1136831350.613432.85260@g47g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,be0bc3866a483798,start X-Google-Attributes: gid1593cb,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "lokke" <cristian.lokki@gmail.com> Newsgroups: chile.comp.programacion Subject: ayuda SQL Date: 9 Jan 2006 11:04:17 -0800 Organization: http://groups.google.com Lines: 27 Message-ID: <1136831350.613432.85260@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: 64.76.148.130 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1136833463 1492 127.0.0.1 (9 Jan 2006 19:04:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 9 Jan 2006 19:04:23 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=64.76.148.130; posting-account=z8Aeag0AAAA2ovA-ncipoD5sxWaJoksA