🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #11265

Re: Dos dudas sobre SQL.

#11265
From: xsidius
Date: Sun, 02 Dec 2001 23:37
17 lines
1610 bytes
Jes�s CarreteMonta�a wrote:


>         Me autorrespondo para decir que esta parte ya est�
> solucionada. Poniendo como clave primaria el dni en las tres tablas

No se si MySQL lo permite pero no te hace falta poner DNI como clave 
primaria, con crear un �ndice para ese atributo es suficiente


Un ejemplillo que ten�a por ahi.

/* Crear un �ndice "nom_opositor" �nico y ascendente para los nombres de 
los opositores */
create unique asc index nom_opositor on OPOSITORES(Nombre);

Saludos PERRA xD
Technical Details
Message-ID: <3c0ab9e4$1@filemon.telecable.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!newsfeed.bt.es!news.bt.es!filemon.telecable.es
References: <87g06u69nh.fsf@meltdown.ion> <87heraoruo.fsf@meltdown.ion>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b998237532da112b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-12-02 15:36:30 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!newsfeed.bt.es!news.bt.es!filemon.telecable.es
From: xsidius <dahernan@telecable.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Dos dudas sobre SQL.
Date: Mon, 3 Dec 2001 00:37:17 +0100
Organization: BT Tel. Netnews service (readers)
Lines: 19
Message-ID: <3c0ab9e4$1@filemon.telecable.es>
References: <87g06u69nh.fsf@meltdown.ion> <87heraoruo.fsf@meltdown.ion>
NNTP-Posting-Host: filemon.telecable.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: titan.bt.es 1007335558 15226 212.89.0.4 (2 Dec 2001 23:25:58 GMT)
X-Complaints-To: abuse@bt.es
NNTP-Posting-Date: 2 Dec 2001 23:25:58 GMT
User-Agent: KNode/0.4
X-Original-NNTP-Posting-Host: cm07486.telecable.es
X-Original-Trace: 3 Dec 2001 00:31:48 +0100, cm07486.telecable.es