If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL used in Db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-06, 04:21
manish21 manish21 is offline
Registered User
 
Join Date: Jan 2003
Posts: 35
SQL used in Db2

In Oracle stored procededures/queries the SQL used is PL/SQL. What do we call the SQL used in DB2 on WIndows/Linux/Unix?
It has some different ways of doing things
for eg.
The function NVL in PL/SQL is replaced by coalesce in DB2.
The method of writting recursive queries in Db2 (With...)is different from PL/SQL (Connect by prior)

So what exactly is this SQL Syntax called?
Reply With Quote
  #2 (permalink)  
Old 11-23-06, 06:56
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
sql

each supplier tries to stick to a certain standard (ansi/sql.....)
there are specific functions (not part of sql) available in each rdb that can do the same but have different names/syntax.
sql used in stored procedures is : sql procedure language sql/pl based on SQL
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 11-23-06, 07:25
manish21 manish21 is offline
Registered User
 
Join Date: Jan 2003
Posts: 35
I read in some document that db2 uses Sql1999 std. Is this the same as the sql/PL standard mentioned by you?
Reply With Quote
  #4 (permalink)  
Old 11-23-06, 07:45
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
sqlpl

sql/pl is just a procedure language that will use SQL
because sql is just select/update/insert... and not programming language as SQL/PL
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On