Connecting Tech Pros Worldwide Help | Site Map

Re: problem with column alias

  #1  
Old July 29th, 2008, 04:45 PM
--CELKO--
Guest
 
Posts: n/a
>Thanks for all the suggestions, I'm actually gunning for portability but the problem is I am generating this query pro grammatically depending on some circumstances .. <<

That is almost always a bad idea. It is slow, it says that you have
no control over the execution of your application, etc. -- you are ad
libbing, which can be funny in a comedy show, but not so good in a
database
Quote:
Quote:
>and I need to do it in such a way that the code that creates it will be the same on oracle, mysql and mssql. <<
There is as defined by ANSI and ISO; it is supposed to run anywhere
and I find it is much easier to write than most "one product cowboy
coders" think. Then there is portable SQL; it has mild dialect
features that can be mapped to Standard SQL, so the conversion is
mechanical (getdate() =CURRENT_TIMESTAMP, etc). Then there is pure
dialect and you are screwed (Oracle's CONNECT BY).

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: problem with column alias Plamen Ratchev answers 1 July 27th, 2008 10:15 PM
problem with Group By sangram.0149@gmail.com answers 5 March 18th, 2006 02:35 PM
Problem with reader Dmitri Manushin answers 1 November 17th, 2005 08:38 PM
Problem with SQL query Nicolas Payre answers 3 July 19th, 2005 09:56 PM