473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How is called DB2 SQL Dialect?

Hi everyone,

i'm really newbie in IBM DB2 but I have to know how is IBM DB2 Dialcet
called? In oracle we have PL/SQL, in SQL Server we have T-SQL. What
about DB2? Is it SQL PL, or DB2 SQL Dialect?

Thanks in advance for any reposne.
Matthew
Nov 24 '07 #1
16 6797
Matthew wrote:
i'm really newbie in IBM DB2 but I have to know how is IBM DB2 Dialect
called? In oracle we have PL/SQL, in SQL Server we have T-SQL. What
about DB2? Is it SQL PL, or DB2 SQL Dialect?
*shrug* DB2 supports SQL.
DB2's procedural language is compliant with the SQL/PSM standard.
MySQL supports the same language.

Since questiosn like yours keep popping up DB2's procedural language
capabilities also go by "SQL PL".. But it's just "SQL"...

Note that in Oracle PL/SQL refers to the procedural constructs only.
"SELECT * FROM DUAL" is NOT PL/SQL. It's just SQL.
x := y IS PL/SQL

AFAIK MS SQL Server is the only product that has named there SQL
dialect: T-SQL. No wonder - it is.... unique indeed.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 24 '07 #2
On Nov 24, 5:41 am, Serge Rielau <srie...@ca.ibm.comwrote:
AFAIK MS SQL Server is the only product that has named there SQL
dialect: T-SQL. No wonder - it is.... unique indeed.
I believe that T-SQL comes from Transact-SQL, which was more-or-less
shared with Sybase way back. The last time I checked, Sybase still
calls their dialect Transact-SQL.

Nobody supports all of the ANSI standard, and everyone offers
extensions. SQL Server is no more unusual in this regard than anyone
else.
Nov 25 '07 #3
deangc wrote:
Nobody supports all of the ANSI standard, and everyone offers
extensions. SQL Server is no more unusual in this regard than anyone
else.
[hello].[world] is rather unusual in my book....
and then there is:
'hello' + 'world'

There is a difference between extensions and plain incompatibilities at
the core of the very language.

Anyway the point I was making is that "TSQL" is the only SQL Dialect.
All the others are names for the procedural language aspect only:
PL/SQL, SPL, SQL PL, pgPL/SQL (did I get this right??).

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 25 '07 #4
Serge Rielau wrote:
deangc wrote:
>Nobody supports all of the ANSI standard, and everyone offers
extensions. SQL Server is no more unusual in this regard than anyone
else.
[hello].[world] is rather unusual in my book....
and then there is:
'hello' + 'world'

There is a difference between extensions and plain incompatibilities at
the core of the very language.

Anyway the point I was making is that "TSQL" is the only SQL Dialect.
All the others are names for the procedural language aspect only:
PL/SQL, SPL, SQL PL, pgPL/SQL (did I get this right??).

Cheers
Serge
Except for that unnamed abomination in MS Access.
--
Daniel A. Morgan
University of Washington
da******@x.washington.edu (replace x with u to respond)
Nov 25 '07 #5
On Nov 25, 4:16 am, Serge Rielau <srie...@ca.ibm.comwrote:
[hello].[world] is rather unusual in my book....
It's an alias for "hello"."world", not so unusual.
and then there is:
'hello' + 'world'
Yes, that is a bit unusual, I agree.
There is a difference between extensions and plain incompatibilities at
the core of the very language.
Neither of the above are incompatibilities, though. Is 'II' defined as
the concatenation operator in SQL3? As far as I know (and my knowledge
doesn't match yours, I know) it is not.
Anyway the point I was making is that "TSQL" is the only SQL Dialect.
All the others are names for the procedural language aspect only:
PL/SQL, SPL, SQL PL, pgPL/SQL (did I get this right??).
PL/SQL has, as you know, many extensions that have little to do with
the procedural part of the language. I would argue that it is even
more a 'dialect' than T-SQL. But you are right: the only ones that I
know of that explicitly name themselves a dialect are T-SQL and
Transact-SQL.

I have used SQL Server 6.5, 7.x, 2000, DB2 7.x, 8.x, 9.x, Oracle 8.x,
9.x (that experience is getting old now) and PROGRESS 8.x, 9.x, and I
think that of those products DB2 is the most ideologically 'pure'.
Until 9.5, that is... :)
Nov 26 '07 #6
On Nov 25, 6:35 am, DA Morgan <damor...@psoug.orgwrote:
>
Except for that unnamed abomination in MS Access.
The less said about that the better.

Nov 26 '07 #7
deangc wrote:
Until 9.5, that is... :)
It was one of those days...too much cranberry juice

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 26 '07 #8
On Mon, 26 Nov 2007 18:25:44 -0000, deangc <de***********@gmail.comwrote:
On Nov 25, 4:16 am, Serge Rielau <srie...@ca.ibm.comwrote:
>[hello].[world] is rather unusual in my book....

It's an alias for "hello"."world", not so unusual.
It is rather unusual - especially seeing as some databases use brackets
for array indexing (and appears to be what the SQL standard specifies for
array indexing).
>and then there is:
'hello' + 'world'

Yes, that is a bit unusual, I agree.
>There is a difference between extensions and plain incompatibilities at
the core of the very language.

Neither of the above are incompatibilities, though.
How do you conclude they're not incompatibilities? They're not compatible
with the SQL standard, and (unsurprisingly) aren't compatible with several
rather commonly used database implementations. I suppose one could
classify them as "extensions" if the standard identifier quoting ("") and
|| concatenation are supported too, although from a brief glance at the
SQL Server 2005 reference that only appears to be the case for quoted
identifiers [1] (there doesn't appear to be any support for the standard
|| concatenation operator [2]).

[1] http://technet.microsoft.com/en-us/l.../ms174393.aspx
[2] http://technet.microsoft.com/en-us/l.../ms177561.aspx

Speaking of which...
Is 'II' defined as
the concatenation operator in SQL3? As far as I know (and my knowledge
doesn't match yours, I know) it is not.
Assuming by SQL3 you mean SQL2003, and by 'II' you mean ||, it certainly
is defined as the concatenation operator. Always has been and therefore
probably always will be (at least in the interests of backward
compatibility). I don't see any support in the standards for + as a
concatenation operator.
>Anyway the point I was making is that "TSQL" is the only SQL Dialect.
All the others are names for the procedural language aspect only:
PL/SQL, SPL, SQL PL, pgPL/SQL (did I get this right??).
Apparently it's PL/pgSQL [3], but close enough :)

[3] http://www.postgresql.org/docs/8.2/static/plpgsql.html
PL/SQL has, as you know, many extensions that have little to do with
the procedural part of the language.
I'm splitting hairs here but still ... It does seem to be common practice
to refer to Oracle's entire SQL dialect as "PL/SQL", although strictly
speaking that's wrong (note the separate reference manuals at [4]). Hence
if these extensions aren't defined in the procedural part of the language,
then they're nothing to do with PL/SQL (which simply refers to the
procedural part of Oracle's dialect).

[4]
http://www.oracle.com/pls/db111/port..._sql_languages
I would argue that it is even
more a 'dialect' than T-SQL. But you are right: the only ones that I
know of that explicitly name themselves a dialect are T-SQL and
Transact-SQL.

I have used SQL Server 6.5, 7.x, 2000, DB2 7.x, 8.x, 9.x, Oracle 8.x,
9.x (that experience is getting old now) and PROGRESS 8.x, 9.x, and I
think that of those products DB2 is the most ideologically 'pure'.
Until 9.5, that is... :)
I haven't used 9.5 yet, but from what little I've read about the
compatibility enhancements it would appear that most which alter
fundamental behaviours in the dialect aren't activated by default (i.e.
they have to be explicitly enabled). So, one could easily classify them
"extensions" rather than "incompatibilities" (to refer to the earlier
point). Is a database still "ideologically pure" if it's got "extensions"
rather than "incompatibilities"? (although perhaps a more pertinent
question would be "does anyone care about the ideological purity of
databases?" ;-)
Pedantically,

Dave.
Nov 27 '07 #9
Serge Rielau wrote:
deangc wrote:
>Until 9.5, that is... :)
It was one of those days...too much cranberry juice
A little vodka, a few ice cubes, a slice of lime, and it will all get
better.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
da******@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Nov 27 '07 #10
On Nov 26, 7:25 pm, deangc <dean.cochr...@gmail.comwrote:
[...]
I have used SQL Server 6.5, 7.x, 2000, DB2 7.x, 8.x, 9.x, Oracle 8.x,
9.x (that experience is getting old now) and PROGRESS 8.x, 9.x, and I
think that of those products DB2 is the most ideologically 'pure'.
Until 9.5, that is... :)
Havent tried 9.5 myself, so I'm curious on what in 9.5 you concider
ideologically 'unpure'?
/Lennart

Nov 27 '07 #11
Lennart wrote:
On Nov 26, 7:25 pm, deangc <dean.cochr...@gmail.comwrote:
[...]
>I have used SQL Server 6.5, 7.x, 2000, DB2 7.x, 8.x, 9.x, Oracle 8.x,
9.x (that experience is getting old now) and PROGRESS 8.x, 9.x, and I
think that of those products DB2 is the most ideologically 'pure'.
Until 9.5, that is... :)

Havent tried 9.5 myself, so I'm curious on what in 9.5 you concider
ideologically 'unpure'?
I think Dean is referring to this:
http://www.ibm.com/developerworks/db...dm-0707rielau/

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 27 '07 #12
I think Dean is referring to this:http://www.ibm.com/developerworks/db...dm-0707rielau/

Yes. I was hoping it would be seen as a gentle joke. I should know by
now that people are sensitive about their RDBMS of choice.
Nov 27 '07 #13
Havent tried 9.5 myself, so I'm curious on what in 9.5 you concider
ideologically 'unpure'?
It was a joke. 9.5 adds support for a number of Oracle extensions,
including the dreaded (+) outer join syntax.

I understand why it was done, but it is impure.
Nov 27 '07 #14
deangc wrote:
>Havent tried 9.5 myself, so I'm curious on what in 9.5 you concider
ideologically 'unpure'?

It was a joke. 9.5 adds support for a number of Oracle extensions,
including the dreaded (+) outer join syntax.

I understand why it was done, but it is impure.
I think those who knew about these features got that it was a joke. :-)

But, yes, people tend to be sensitive on such matter... All is relative
however. In some other groups this thread would have long turned abusive :-(

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 27 '07 #15
Dave Hughes wrote:
I haven't used 9.5 yet, but from what little I've read about the
compatibility enhancements it would appear that most which alter
fundamental behaviours in the dialect aren't activated by default (i.e.
they have to be explicitly enabled). So, one could easily classify them
"extensions" rather than "incompatibilities" (to refer to the earlier
point). Is a database still "ideologically pure" if it's got "extensions"
rather than "incompatibilities"? (although perhaps a more pertinent
question would be "does anyone care about the ideological purity of
databases?" ;-)
I don't know about purity, but at least Express-C 9.5 (LUW) will install on
openSUSE 10.3 - all earlier versions crap out trying to start the java
installer or (in the case of an update install) the CC. Even the 9.5 code
complains about not being able to unlock something because it isn't locked,
then complains that the same resource can't be locked because it's still
locked. The rest of the error message blames the problem on the
application coding <gso it's likely a java thing. At least everything
runs. It may be my inagination, but the CC seems to somewhat faster than
previous versions.

--
Will Honea

--
Posted via a free Usenet account from http://www.teranews.com

Nov 28 '07 #16
On Nov 27, 7:53 pm, deangc <dean.cochr...@gmail.comwrote:
Havent tried 9.5 myself, so I'm curious on what in 9.5 you concider
ideologically 'unpure'?

It was a joke. 9.5 adds support for a number of Oracle extensions,
including the dreaded (+) outer join syntax.
My guess was either that or something related to xml. Anyhow, as
mentioned I was just curious

/Lennart

[...]
Nov 28 '07 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: beveled edges | last post by:
I'm using the XML functions in PHP 5. The callback function I set for namespace declarations doesn't get called. Can anyone help me out? The code is: $xml = '<addressbook...
1
by: beveled edges | last post by:
I'm using the XML functions in PHP 5. The callback function I set for namespace declarations doesn't get called. Can anyone help me out? The code is: $xml = '<addressbook...
1
by: Teuvo Eloranta | last post by:
Hi, I have a question regarding csv module usage in W2K (ActivePython-2.3.2-232-win32-ix86) http://www.python.org/doc/current/lib/csv-fmt-params.html says: "lineterminator The string used to...
0
by: Robert Nagle | last post by:
Hi, I was wondering if anyone knows of any xml dialect for recording events (Date, Time, Cost, Place, Description, Organization). I looked at the oasis list http://xml.coverpages.org/siteIndex.html...
20
by: Charles Law | last post by:
I have an application that creates a class. The class has unmanaged resources, so must end gracefully. How can I guarantee that the unmanaged resources are freed? I have looked at IDisposable,...
35
by: Peter Oliphant | last post by:
I'm programming in VS C++.NET 2005 using cli:/pure syntax. In my code I have a class derived from Form that creates an instance of one of my custom classes via gcnew and stores the pointer in a...
33
by: Frederick Gotham | last post by:
(My dialect of English seems to puzzle people at times, so I'll first clarify a few terms which I use in the following post:) (1) By "domestic", I mean "ordinary, run-of-the-mill, not...
0
by: nguyentrungd | last post by:
Hi all, org.hibernate.dialect.DB2400Dialect doent seem to support mapping type DECIMAL. I wonder if there is any solution to this. I think i need to modify the hibernate code to include...
6
by: vcciubot | last post by:
Hi all, I use a c++ front end to compile C code, I run into problems when void* pointers are implicitly converted. Is there a fix to this kind of issue? Are there c++ dialects that are supersets...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.