🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #308

Re: Una spiegazione sulla chiave primaria

#308
From: MosBet
Date: Mon, 10 Jul 2006 00:18
23 lines
2196 bytes
"Mad" <Mad@tin.it> ha scritto nel messaggio 
news:44a19f60$0$3111$4fafbaef@reader1.news.tin.it...
> Ciao.
> Volevo porvi una domanda per avere un chiarimento.
> Ho creato un db con tre campi: Nome - Cognome - Citt�.
> Creo una chiave primaria per i campi Nome e Cognome.
> Questo vuol dire che nel mio db esister� un quarto campo che conterr� un 
> valore, che sar� determinato sulla base dei valori dei campi Nome e 
> Cognome?
> Con quale metodo viene calcolato questo valore?
> Grazie e ciao
>
La chiave primaria non � un campo!
Diciamo (non proprio esattamente) che � come un "indice" che si
basa su uno o pi� campi.
Non penso che sia esatto impostare la chiave su i campi
nome e cognome dato che la chiave primaria non pu� avere
valori doppi e quindi non potresti mai immettere ne tuo db
due persone omonime (es. 2 mario rossi)
La migliore scelta cade sul codice fiscale della persona
o su un codice-persona che gestisci tu (od un campo
contatore in Access)
HTH 
Technical Details
Message-ID: <44b19ccd$0$3109$4fafbaef@reader1.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!colt.net!feeder.news-service.com!news.astraweb.com!newsrouter-eu.astraweb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail
References: <44a19f60$0$3111$4fafbaef@reader1.news.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,adc7b4522f3c079a
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!colt.net!feeder.news-service.com!news.astraweb.com!newsrouter-eu.astraweb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail
From: "MosBet" <moscioTOGLIQUESTO@tiscali.it>
Newsgroups: free.it.visual-basic
References: <44a19f60$0$3111$4fafbaef@reader1.news.tin.it>
Subject: Re: Una spiegazione sulla chiave primaria
Date: Mon, 10 Jul 2006 02:18:21 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Lines: 25
Message-ID: <44b19ccd$0$3109$4fafbaef@reader1.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 87.6.188.61
X-Trace: 1152490701 reader1.news.tin.it 3109 87.6.188.61:3141
X-Complaints-To: Please send abuse reports to abuse@tin.it