Insert multiple rows into single column

前端 未结 9 1720
抹茶落季
抹茶落季 2020-12-24 07:29

I\'m new to SQL, (using SQL 2008 R2) and I am having trouble inserting multiple rows into a single column.

I have a table named Data and this is what I

9条回答
  •  心在旅途
    2020-12-24 07:55

    To insert into only one column, use only one piece of data:

    INSERT INTO Data ( Col1 ) VALUES
    ('Hello World');
    

    Alternatively, to insert multiple records, separate the inserts:

    INSERT INTO Data ( Col1 ) VALUES
    ('Hello'),
    ('World');
    

提交回复
热议问题