Results 1 to 2 of 2

Thread: Insert when, Insert all when difference

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Insert when, Insert all when difference

    Insert when syntax is
    INSERT
    WHEN condition THEN
    INTO table_name column_list
    VALUES (values_list)
    WHEN condition THEN
    INTO table_name (column_list)
    VALUES (values_list)
    ELSE
    INTO table_name (column_list)
    VALUES (values_list)
    SELECT column_list FROM table_name;

    Insert all when syntax is
    INSERT ALL
    WHEN (condition) THEN
    INTO table_name (column_list)
    VALUES (values_list)
    WHEN (condition) THEN
    INTO table_name (column_list)
    VALUES (values_list)
    ELSE
    INTO table_name (column_list)
    VALUES (values_list)
    SELECT column_list FROM ;

    What is the difference in their functionality?

    Last edited by krishnaindia2007; 12-03-2007 at 11:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact