|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Hi,
I need to write a SQL statment to insert data into a table. Not a problem. But, can I insert more than one row/record at a time? e.g. If I have a 'Person' table with 'First_Name' and 'Last_Name' fields and 50 peeps to put in them all in the same statment, or do I have to keep reusing the query 50 times?? Thanks Dave |
|
#2
|
||||
|
||||
|
For example, to insert 1 new record into my Person table I could use:
INSERT INTO Person(First_Name,Last_Name) VALUES("Joe","Bloggs") Could I write a single SQL statement which would put more than 1 record in? Cheers |
|
#3
|
|||
|
|||
|
Quote:
try :INSERT INTO Person(First_Name,Last_Name) VALUES("Joe","Bloggs"), ("Mary","Jane"), ("Peter","Parker") ...and so on! Never tried it in MS sql server but it works in mysql ![]() LcabraL was here |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Bulk insert VB to Access |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|