これが私の簡単なBTEQスクリプトです
.LOGON 127.0.0.1/tduser,tduser
.EXPORT DATA FILE=C:\Documents and Settings\Owner\Desktop\Study\Google Drive\TD\BTEQ\Exported_File.txt
SELECT account_number
FROM samples.accounts
WHERE balance_current < 500 ;
.EXPORT RESET
.QUIT
================================================== ===================================
スクリプトの出力:
BTEQ 12.00.00.01 Tue Mar 26 19:58:59 2013
+---------+---------+---------+---------+---------+---------+---------+----
.LOGON 127.0.0.1/tduser,
*** Logon successfully completed.
*** Teradata Database Release is 12.00.00.10
*** Teradata Database Version is 12.00.00.10
*** Transaction Semantics are BTET.
*** Character Set Name is 'ASCII'.
*** Total elapsed time was 1 second.
+---------+---------+---------+---------+---------+---------+---------+----
.EXPORT DATA FILE=C:\Documents and Settings\Owner\Desktop\Study\Google Driv
e\TD\BTEQ\Exported_File.txt
*** To reset export, type .EXPORT RESET
+---------+---------+---------+---------+---------+---------+---------+----
SELECT account_number
FROM samples.accounts
WHERE balance_current < 500 ;
*** Success, Stmt# 1 ActivityCount = 4
*** Query completed. 4 rows found. One column returned.
*** Total elapsed time was 1 second.
+---------+---------+---------+---------+---------+---------+---------+----
.EXPORT RESET
*** Output returned to console.
+---------+---------+---------+---------+---------+---------+---------+----
.QUIT
*** You are now logged off from the DBC.
*** Exiting BTEQ...
*** RC (return code) = 0
================================================== ===================================
一度、テキスト ファイルに無効な文字が含まれているファイルを確認します。可能な回避策はありますか?ユニコードの問題?よくわかりません。以下のファイルの内容を貼り付けようとしましたが、空です。
前もって感謝します。