Results 1 to 3 of 3

Thread: Where to use "signal" keyword in SQL ?

  1. #1
    Join Date
    Feb 2009
    Posts
    48

    Where to use "signal" keyword in SQL ?

    hello,

    I want to ask that where do we use the keyword called " signal " in SQL ? and what is the importance of this keyword ? I am sure many of you would be very well aware of this......can anybody help me with this ?
    thnx

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Where to use "signal" keyword in SQL ?

    SIGNAL -
    With the SIGNAL statement, you can use it to raise an SQLSTATE exception. This statement can only be used within a trigger_body or within the body of an SQL routine, whose language type is SQL.
    This statement will cause an SQLSTATE exception to be thrown and propagated back to your program.
    You provide the text of the message.

    NOTE: The SIGNAL statement rolls back the specific event that activated its trigger and all the changes caused by the trigger, as well as the original SQL statement of the user, which includes all the triggers and cascading actions that it invoked.

    Syntax -
    signal - The SIGNAL keyword is required as the first word in a SIGNAL statement.

    sqlstate_message - The sqlstate_message is an SQL string literal value. You can specify any text they would like. The actual SQLSTATE code will be ZG014 and the SQL error code is 25014.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Where to use "signal" keyword in SQL ?

    The signal keyword is specified under the trigger body. Whenever user triggers the condition ( BEFORE or AFTER ), the action is performed and this action is performed using the signal keyword.....rightly to signal the action when the specific condition triggers.

Similar Threads

  1. Replies: 6
    Last Post: 16-01-2012, 09:39 AM
  2. Replies: 6
    Last Post: 18-05-2010, 12:27 AM
  3. Monitor showing "no signal" in Compaq Presario CQ5300F Desktop
    By Muses in forum Monitor & Video Cards
    Replies: 5
    Last Post: 20-03-2010, 09:55 AM
  4. Return keyword does not give value of variable "ast"
    By MKAIF in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 07:40 PM
  5. The keyword "static", attributes and methods of class in OOP
    By DotNetUser in forum Software Development
    Replies: 3
    Last Post: 05-01-2009, 11:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,958,072.53584 seconds with 16 queries