Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2008, 01:37 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default Creating Multiple Rows at 1 Time

This was ineffective:
Code:
     SQL>INSERT INTO DISFIN_NO_SHOW (DOCN)
       2 VALUES                     ('X1', 'X2', 'X3');
     INSERT INTO DISFIN_NO_SHOW (DOCN)
                 *
     ERROR at line 1:  ORA-00913: too many values
     But I know that multiple rows can be created with
Code:
     INSERT INTO DISFIN_NO_SHOW (DOCN)
Code:
     SELECT DOCN||'X'
     FROM   DISFIN_NO_SHOW
     WHERE  DOCN > '12345';
     How can I provide values to the SQL, and create a group of rows at a time as the SELECT statement would do?





Similar Threads
Thread Thread Starter Forum Replies Last Post
INSERT Multiple rows to database at one time melkin Classic ASP Databases 19 April 11th, 2007 08:22 AM
Inserting mulitible rows in one table at one time mohanrajb Classic ASP Databases 1 June 21st, 2005 10:09 AM
print multiple times..multiple rows... abhit_kumar JSP Basics 3 January 18th, 2005 07:11 PM
creating a table and inserting rows. sasidhar79 Classic ASP Databases 2 July 28th, 2004 03:09 AM
Updating multiple Rows from multiple fields in ASP vdm_nana SQL Server ASP 0 April 1st, 2004 04:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.