User Profile

Collapse

Profile Sidebar

Collapse
JayaramN
JayaramN
Last Activity: Mar 14 '13, 09:27 AM
Joined: Nov 29 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JayaramN
    replied to Search a string in entire schema
    try the below query
    Code:
    select * from user_source where text like ('%<your keyword>%')
    But it will look only on PROCEDURE, FUNCTION, TRIGGER
    or
    try to write a ananomouys SQQ block to check the keyword which you are searching is there in the table script sql.
    Like:
    Code:
    declare
    -- get List of all tables in your databsae 
    -- select object_name from user_objects where object_type='TABLE'
    begin
    ...
    See more | Go to post
    Last edited by zmbd; Feb 6 '13, 10:14 PM. Reason: [Rabbit{Please use code tags when posting code.}][Z{Tagged the SQL}]

    Leave a comment:


  • JayaramN
    started a topic Stored procedure in DB2
    in DB2

    Stored procedure in DB2

    Hi ,
    I was new to Db2 .
    I was trying to create my first DB2 Stored procedure
    and I am getting the below error message

    Expected tokens may include: "JOIN <joined_table>" . SQLSTATE=42601

    SQL0104N An unexpected token "END-OF-STATEMENT" was found following "END". Expected tokens may include: "JOIN <joined_table > ...
    See more | Go to post

  • JayaramN
    replied to rounding milliseconds to seconds in db2
    in DB2
    I tried the below query for rounding the timestamp:
    SELECT ROUND_TIMESTAMP ('2008-10-16-14.46.22.121222 ','MI')
    FROM SYSIBM.SYSDUMMY 1

    but it is not working i am getting the below error message:
    SELECT ROUND_TIMESTAMP ('2008-10-16-14.46.22.121222 ','MI') FROM SYSIBM.SYSDUMMY 1
    SQL0440N No authorized routine named "ROUND_TIMESTAM P" of type "FUNCTION"
    having compatible arguments was...
    See more | Go to post

    Leave a comment:


  • JayaramN
    started a topic rounding milliseconds to seconds in db2
    in DB2

    rounding milliseconds to seconds in db2

    How to convert the timestamp to nearest seconds.
    example i am having date value as 2012-11-28 13:03:18.981
    and it needs to be rounded to 2012-11-28 13:03:19 in DB2 select query
    See more | Go to post
No activity results to display
Show More
Working...