🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2495

Re: ayuda SQL

#2495
From: Mauricio Gomez
Date: Sat, 14 Jan 2006 15:41
35 lines
2135 bytes
Podrias probar con "end" entre comillas.



rro


lokke wrote:
> 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: <dqb62j$k7u$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.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!news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: Mauricio Gomez <buena@pregunta.com>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda SQL
Date: Sat, 14 Jan 2006 12:41:06 -0300
Organization: Varios
Lines: 35
Message-ID: <dqb62j$k7u$1@news.nivel5.cl>
References: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>
NNTP-Posting-Host: pc-23-73-104-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.nivel5.cl 1137253268 20734 200.104.73.23 (14 Jan 2006 15:41:08 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sat, 14 Jan 2006 15:41:08 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716)
X-Accept-Language: en-us, en
In-Reply-To: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>