If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 command line processor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-22-11, 15:35
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
DB2 command line processor

I am using DB2 on Winddows

From the command line processor I can enter the following successfully:

Code:
db2 => CREATE TABLE testtable_a ( \
db2 (cont.) =>     col_a                  CHAR(1) \
db2 (cont.) =>  )
DB20000I  The SQL command completed successfully.
db2 =>
db2 =>
But I can not figure out how to invoke the option to do this without the slash "\" after every line:

What command do I run to do this ?

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-22-11, 15:37
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You can either put the entire statement on a single line, or you can put the statements in a script file (text file) and execute the script file using "db2 -tvsf <scriptfile>".

Andy
Reply With Quote
  #3 (permalink)  
Old 06-22-11, 15:55
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
this was accidently posted and can be removed :-)

Last edited by DB_N00b; 06-22-11 at 16:05.
Reply With Quote
  #4 (permalink)  
Old 06-22-11, 16:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You posted this on the wrong thread. But yes, that is what you need to do.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On