Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "Dr.UgoGagliardelli" <do.not.spam@me.please> |
|---|---|
| Newsgroups | it.comp.java |
| Subject | Re: hsql |
| Date | 2015-10-20 11:49 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n052nu$s6i$1@speranza.aioe.org> (permalink) |
| References | (2 earlier) <mvtg4g$pks$1@speranza.aioe.org> <mvth3a$r2t$1@speranza.aioe.org> <mvtm07$a75$1@speranza.aioe.org> <n04qtg$872$1@speranza.aioe.org> <n050tp$muj$1@speranza.aioe.org> |
Il 20.10.2015 11.18, Roberto Tempesti ha scritto: > Il 20/10/2015 09:36, Dr.UgoGagliardelli ha scritto: [...] > come vedi mi diletto a seguire anche questo n.g. (solo da lurker, per > carita'!); ho letto questa tua affermazione e mi interessa verificare di > avere capito bene: > > facendo una "select * from....." e' possibile che il risultato sia > imprevedibile sotto l'aspetto della sequenza dei campi? > > Grazie come sempre per la risposta. Beh, con imprevedibile intendo che non va dato per scontato. Immagino che in realta' l'ordinamento sia in qualche modo prevedibile, immagino anche che dipenda dall'implementazione. Ad esempio assumi che un certo db ordini i campi in ordine alfabetico, e che select * corrisponda a select a, b, c e che ad un certo punto venga aggiunta la colonna aa, conseguentemente diventa select a, aa, b, c quindi se nel programma hai utilizzato select * il programma potrebbe prendere un aa per un b; o al contrario se viene cancellata la colonna b la select * non sbaglia, il programma prendera' un c per un b, e vissero tutti felici e contenti! :) Con tutti i distinguo del caso, per carita'. Nel senso che, con un certo costo aggiuntivo di esecuzione, dal resultset puoi sempre selezionare i campi col nome e non con il numero d'ordine. Nell'esempio di cui sopra ho utilizzato l'ordine alfabetico per mera semplicita'. Lo standard direbbe che l'ordine delle colonne sia lo stesso del create table, ma che un alter table lo puo' modificare; il caso evidente e' alter table drop column, ma puo' succedere anche con l'alter column. E comunque mi sembra di ricordare qhe questa regola non sia mandatory, per cui sarebbe legittimo qualsiasi altro ordinamento dipendente dall'implementazione. Fatto sta che come best-practise e' consigliata la proiezione esplicita.
Back to it.comp.java | Previous | Next — Previous in thread | Next in thread | Find similar
hsql Gulp® <gulp@hotmail.it> - 2015-10-16 19:06 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-16 12:20 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 01:14 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-16 16:24 -0700
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-16 16:26 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-17 06:51 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-17 08:08 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:15 +0200
Re: hsql Delta11 <delta11NSP@email.it> - 2015-10-16 22:52 +0200
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 01:11 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-16 16:25 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-17 06:54 +0200
Re: hsql Delta11 <delta11NSP@email.it> - 2015-10-17 10:31 +0200
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-17 12:23 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-17 08:11 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-17 07:02 +0200
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 12:26 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-17 08:14 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-18 14:12 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-18 10:52 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-18 14:15 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-18 10:53 -0700
Re: hsql Jack <jack4747@gmail.com> - 2015-10-23 01:47 -0700
Re: hsql "Vittorio" <scipionelafricano@tim.it> - 2015-11-02 20:36 +0100
Re: hsql Enrico Bianchi <enrico.bianchi@ymail.com> - 2015-11-03 00:01 +0000
Re: hsql rootkit <rootkit@email.it> - 2015-11-02 22:41 -0800
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:28 +0200
Re: hsql rootkit <rootkit@email.it> - 2015-10-17 04:59 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 14:46 +0200
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-17 15:05 +0200
Re: hsql rootkit <rootkit@email.it> - 2015-10-17 06:32 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 16:26 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-17 08:17 -0700
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-17 08:18 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-18 14:02 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-18 17:19 +0000
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-18 10:56 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:45 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-20 09:02 +0000
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-20 08:10 -0700
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-18 10:55 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:37 +0200
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:36 +0200
Re: hsql Roberto Tempesti <roberto.tempesti@nospam.it> - 2015-10-20 11:18 +0200
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 11:49 +0200
Re: hsql Roberto Tempesti <roberto.tempesti@nospam.it> - 2015-10-20 12:06 +0200
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-20 23:14 +0200
Re: hsql rootkit <rootkit@email.it> - 2015-10-17 07:04 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 16:19 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-17 08:19 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:51 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-20 08:14 -0700
Re: hsql Enrico Bianchi <enrico.bianchi@ymail.com> - 2015-10-18 09:29 +0000
Re: hsql rootkit <rootkit@email.it> - 2015-10-18 05:20 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-18 17:40 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-18 17:27 +0000
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:58 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-20 09:05 +0000
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-20 08:17 -0700
Re: hsql rootkit <rootkit@email.it> - 2015-10-20 14:34 -0700
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-21 07:23 +0000
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-21 09:40 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-21 02:02 -0700
Re: hsql rootkit <rootkit@email.it> - 2015-10-21 22:40 -0700
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-21 01:59 -0700
Re: hsql rootkit <rootkit@email.it> - 2015-10-21 13:12 -0700
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-22 07:48 +0000
Re: hsql rootkit <rootkit@email.it> - 2015-10-22 08:57 -0700
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-22 16:39 +0000
Re: hsql rootkit <rootkit@email.it> - 2015-10-22 22:38 -0700
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-18 11:03 -0700
Re: hsql rootkit <rootkit@email.it> - 2015-10-18 11:59 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-19 00:17 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-18 15:51 -0700
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-19 01:13 +0200
Re: hsql rootkit <rootkit@email.it> - 2015-10-18 23:19 -0700
Re: hsql Gulp® <debvales@hotmail.com> - 2015-10-19 10:37 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-19 09:16 +0000
Re: hsql "Gulp®" <Adebval@email.it> - 2015-10-19 11:28 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-19 10:50 +0000
Re: hsql "Gulp®" <Adebval@email.it> - 2015-10-19 13:08 +0200
Re: hsql 4ndre4 <a.laforgia@gmail.com> - 2015-10-19 04:22 -0700
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-19 09:12 +0000
Re: hsql "Gulp®" <Adebval@email.it> - 2015-10-19 11:32 +0200
Re: hsql rootkit <rootkit@email.it> - 2015-10-19 06:20 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 10:16 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-20 09:06 +0000
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-19 09:07 +0000
Re: hsql Sylar Surfer <Sylar.Surfer@gmail.com> - 2015-10-21 22:50 +0200
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-10-22 07:56 +0000
Re: hsql "Gulp®" <Adebval@email.it> - 2015-11-02 12:22 +0100
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-11-02 14:45 +0000
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-11-03 12:38 +0100
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-11-03 16:06 +0000
Re: hsql Roberto Tempesti <roberto.tempesti@nospam.it> - 2015-11-03 18:03 +0100
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-11-03 17:23 +0000
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-11-04 11:53 +0100
Re: hsql rootkit <rootkit@email.it> - 2015-11-04 03:54 -0800
Re: hsql "ciccio" <21669invalid@mynewsgate.net> - 2015-11-05 08:21 +0000
Re: hsql rootkit <rootkit@email.it> - 2015-11-07 09:40 -0800
Re: hsql rootkit <rootkit@email.it> - 2015-11-03 21:46 -0800
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-11-04 11:55 +0100
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-11-02 15:48 +0100
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-25 23:18 +0100
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-17 16:22 +0200
Re: hsql rootkit <rootkit@email.it> - 2015-10-17 08:52 -0700
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 10:18 +0200
Re: hsql "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 10:19 +0200
Re: hsql Gulp® <gulp@hotmail.it> - 2015-10-20 23:08 +0200
csiph-web