Three Methods to Insert Multiple Rows into Single Table - SQL in Sixty Seconds #024

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

What an amazing video, 1 minute long. On point. If only it was for sql developer. Envethough that you have my +1, thanks!

Автор

Awesome...But i want to know is there any difference in performance (in case of 1-2 and 3rd way) ?

AvinashKumar-bjmj
Автор

I have created a one to many relationship between 2 tables in VS. On data entry, how do I add multiple integer values in one field (on the many side of the one to many relationship).

cyberspacedweller
Автор

hi Dave, Im using Vb6 & SQL2008, I have 6 Column wiith 10 rows(Textbox) each.. On Vb when i insert data on all textboxes I want to be save in SQL, I followed your Metho3 tutorial but I have an error.


TRUNCATE TABLE #FillForm;

INSERT INTO #FillForm (ID, Value)
VALUES (1, 'Qty'), (2, 'ItemDes'), (3, 'Currency'), (4, 'UnitP'), (5, 'Remarks'), (6, 'StubNum')

DROP TABLE #FillForm;


ERROR - Can u pls help me?
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near ', '.

carsondalmore
Автор

Hi Dave I have tried ur 3rd coding for inserting two rows of datas, but I was not able to do, for example I coded as {  insert into h_emp (e_firstname, e_lastname, e_id, e_salary) 
values ('Ajay', 'Babu', 102, 20000), ('Amar', 'Kumar', 103, 19000);  }. Please correct me if I am wrong.

hari
Автор

Are sir socha tha millions of rows ek saath load krna bataoge

vishwaskhare
Автор

The 3rd method you have shown(INSERT INTO TABLE_NAME  VALUES (), ()...) has a limitation of maximum 1000 values I guess.

Deepakkumar
Автор

hi pinal. i have to insert upto 1000 records in a table in oracle db where one column has to be unique. can u tellme how can we perform this bulk insertion in one go to save time?

imohitr
Автор

there is something with your code it work on me but almost the same as your this is my code INSERT INTO table_name (column)
(''first'), ('second'), ('third')
remove the word VALUE in the column and remove the numbers with comma in order to add in multiple but thanz man you give me an idea on how to add multile i appreciate it :)

leugenceleocadioclaridad
Автор

Insert_All can also be helpful in achieving this.

kiransreerama
Автор

how to Insert Single Rows in Multiple Table?

SamratAcharjee