这是我的简单 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
==================================================== ====================================
有一次,我检查了它在文本文件中显示无效字符的文件。任何可能的解决方法?统一码问题?我不确定。我什至尝试在下面粘贴文件内容,但它是空的。
提前致谢。