Re: Please explain why this Select doesn't fail
From: Hugo Kornelis (hugo_at_pe_NO_rFact.in_SPAM_fo)
Date: 12/14/04
- Next message: Rudolf Wiener: "Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Previous message: Hugo Kornelis: "Re: all about transaction"
- In reply to: Andrew J. Kelly: "Re: Please explain why this Select doesn't fail"
- Next in thread: Andrew J. Kelly: "Re: Please explain why this Select doesn't fail"
- Reply: Andrew J. Kelly: "Re: Please explain why this Select doesn't fail"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Dec 2004 10:02:16 +0100
On Mon, 13 Dec 2004 19:39:35 -0500, Andrew J. Kelly wrote:
>> Or do you mean that references to tables in the outer query should always
>> be qualified with table name or alias or else throw an error?
>
>Pretty much yes. Actually I would prefer that if the column in the subquery
>does not exist in the table directly referenced in the from clause of the
>sub-query it should throw an error.
Hi Andrew,
Yeah, I think that this requirement would prevent lots of foolish
mistakes. Though I also have to agree with Steve's point, that this would
break too much existing code (not mine though - I always prefix ALL
columns as soon as more than one table is used in a query)
On the other hand - this change would fix one potential source of errors,
while leaving others open. Maybe we'll just have to accept the simple fact
that SQL is NOT a simple language that one can master after a one-week
crash course. The same power and flexibility that allows one to work true
miracles with SQL also allows one to goof up big time.
Best, Hugo
-- (Remove _NO_ and _SPAM_ to get my e-mail address)
- Next message: Rudolf Wiener: "Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Previous message: Hugo Kornelis: "Re: all about transaction"
- In reply to: Andrew J. Kelly: "Re: Please explain why this Select doesn't fail"
- Next in thread: Andrew J. Kelly: "Re: Please explain why this Select doesn't fail"
- Reply: Andrew J. Kelly: "Re: Please explain why this Select doesn't fail"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|