🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2471

Re: ayuda SQL

#2471
From: Esteban Navarro
Date: Mon, 09 Jan 2006 20:19
31 lines
2232 bytes
no se si se pueda de alguna forma, perso segun recuerdo end es keyword.


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: <dpugd8$3id$1@helcaraxe.dcc.uchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.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!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail
From: Esteban Navarro <estebann1@yahoo.com>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda SQL
Date: Mon, 09 Jan 2006 17:19:06 -0300
Organization: DCC - Universidad de Chile
Lines: 31
Message-ID: <dpugd8$3id$1@helcaraxe.dcc.uchile.cl>
References: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>
NNTP-Posting-Host: anakena.dcc.uchile.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: helcaraxe.dcc.uchile.cl 1136837864 3661 192.80.24.6 (9 Jan 2006 20:17:44 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Mon, 9 Jan 2006 20:17:44 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
X-Accept-Language: en-us, en
In-Reply-To: <1136831350.613432.85260@g47g2000cwa.googlegroups.com>