Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Eric Hassold <hassold@xxxxxxxxxxx>
- Date: Sat, 17 Nov 2007 21:25:57 +0100
Hi,
Kevin Kenny wrote :
Eric Hassold, Twylite, and Wojciech Kocjan all request that rows from
a database query all be returned as lists.
Actually, I was only pointing out a possible flaw, and commenting about this so-called "abominable" feature being quite usual. I find dict elegant approach, but this has to be addressed. On the other side, rows as list + method to retrieve null fields is more generic. So I really have no definitive opinion (except maybe supporting both?)
tom.rmadilo wrote :
Of course, explicit column naming with 'AS' would be recommended. But to
answer your question/comment "which RDBMS supports that abdominal
feature?, I would say most if not all.
Actually _EVERY_ RDBMS supports this feature. What none of the RDBMS's
support is ordered storage of data on disk (that is why you have order-
by, and should avoid select *). So, if you didn't enforce the ordering
of columns on select, you couldn't SELECT into a table using a select
statement.
I find my way to formulate answer, without uppercases and emphasis, more gentle and adequate on a public forum. And, to be accurate, I was explicitly commenting on "RDBMS supporting multiple columns having same name" (not on rows being ordered), so "every" doesn't apply here. See e.g. MS Access:
SELECT 1 AS a, 2 AS a FROM Customers;
ERREUR: Alias de sortie 'a' repliqué
yes, my Access version is localized. Something like:
ERROR: duplicate output alias 'a'
Eric
.
- Follow-Ups:
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: tom.rmadilo
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- References:
- TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Donal K. Fellows
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Twylite
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Donal K. Fellows
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Wojciech Kocjan
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: tom.rmadilo
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Michael Schlenker
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Eric Hassold
- Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: tom.rmadilo
- TIP#308 Published: Tcl Database Connectivity (TDBC)
- Prev by Date: TIP #308: Twylite's concerns
- Next by Date: Re: Why doesn't foreach return a value
- Previous by thread: Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- Next by thread: Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
- Index(es):
Relevant Pages
|