What is the difference between "insert" and "insert into?"

  • Could anyone explain:

    what is the difference between "insert" and "insert into"?

    And, also, please include the source of the explaination.

  • Same thing except that insert into is the ainsi standard that you should use.

  • If your question is only regarding relational data then BOL says:

    [INTO]

    Is an optional keyword that can be used between INSERT and the target table.

    However, if it is about "analysis services programming" then BOL would be a good place to start...

    hth







    **ASCII stupid question, get a stupid ANSI !!!**

  • Thanks a lot!!!

     

  • In Sql Server

    If you are using Insert or Insert into both will insert the data in Table.

    However Insert into is basically used to fatch the data from another table using select command and insert into table where you want to insert the data.

    Insert command is simply used to insert data

  • soniarajput1988 (6/1/2012)


    However Insert into is basically used to fatch the data from another table using select command and insert into table where you want to insert the data.

    Insert command is simply used to insert data

    Nope, the two are completely the same, the INTO keyword is simply optional on an insert.

    Maybe you're thinking of SELECT ... INTO

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply