Quote:
|
... I need to give a complete path of where testrun exists?
|
Yes, I think so.
You may want to check where in directory were you by "quit".
Here are some examples.
(I'm sorry to be mixed English and Japanese.)
Note: Some lines were omitted.
Code:
db2 => connect to sample user db2admin using ********
Database Connection Information
Database server = DB2/NT 9.7.5
SQL authorization ID = DB2ADMIN
Local database alias = SAMPLE
db2 => export to testrun.csv of del select * from department
SQL3104N The Export utility is beginning to export data to file
"testrun.csv".
SQL3105N The Export utility has finished exporting "9" rows.
Number of rows exported: 9
db2 => quit
DB20000I The QUIT command completed successfully.
D:\IBM\SQLLIB_V97\BIN>dir *.csv
ドライブ D のボリューム ラベルは DATA です
ボリューム シリアル番号は 3F9F-A7B7 です
D:\IBM\SQLLIB_V97\BIN のディレクトリ
2012/01/23 12:31 383 testrun.csv
1 個のファイル 383 バイト
0 個のディレクトリ 4,088,479,744 バイトの空き領域
D:\IBM\SQLLIB_V97\BIN>db2
(c) Copyright IBM Corporation 1993,2007
Command Line Processor for DB2 Client 9.7.5
You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd
...
...
db2 => SELECT COUNT(*) FROM department
1
-----------
9
1 record(s) selected.
db2 =>