User Profile

Collapse

Profile Sidebar

Collapse
ddddd
ddddd
Last Activity: Dec 23 '11, 06:35 AM
Joined: Jun 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ddddd
    started a topic How to use NULLS first
    in DB2

    How to use NULLS first

    I have a table which has about 7 columns and the first row of all the collums is NULL.. when i do a select statement something like

    Select * from tablename order by col0 NULLS FIRST..

    It says the NULLS clause is not supported.

    If i use simply

    Select * from tablename order by col0 ..

    By default the Null row is displayed at the last but i created it in the first row.. ...
    See more | Go to post

  • getProcedures() interface method doesn't return the functions

    AM using the JDBC interface metho getProcedures() to get the stored procedures from the Database... Since this is common interface method am trying out with two different set of databases namely MySQL, DB2 and Oracle too.. For oracle and MySQL the getProcedures() returns the stored procedures as well as the Functions.. But for DB2 it returns only the stored procedures not the functions...

    What changes should i do so that the interface...
    See more | Go to post

  • ddddd
    replied to throwing error when creating procedure
    in DB2
    Thanks.. it solved the problem
    See more | Go to post

    Leave a comment:


  • ddddd
    started a topic throwing error when creating procedure
    in DB2

    throwing error when creating procedure

    CREATE PROCEDURE PART6(IN a FLOAT, IN b FLOAT, OUT retval FLOAT)
    BEGIN
    retval = a * b
    END

    The above procedure creation statement throws error saying

    DB21034E The command was processed as an SQL statement because it was not a
    valid Command Line Processor command. During SQL processing it returned:
    SQL0104N An unexpected token "retval" was found following "retval FLOAT)...
    See more | Go to post
No activity results to display
Show More
Working...