Results 1 to 4 of 4

Thread: Clarify Funtion Doubt

  1. #1
    Join Date
    Jun 2007
    Posts
    14

    Question Clarify Function Doubt

    Dear All,
    I am using one function thats performs some updates and result is coming 1 while run directly in pl/sql developer , But when i call the function through select statement it gives a return value as 0 . kindly clarify whether is there any error in function or some other methods to execute function
    Last edited by intelram_18; 11-11-2008 at 02:38 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932

  3. #3
    Join Date
    Jun 2007
    Posts
    14

    Smile Doubt in Funation

    Dear skhanal,
    Thanks for ur reply . I find the problem it because of i use update statment with in function , so the error cames .Thank u once again for ur reply

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can't use any DML statement in a function, write a stored procedure instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •