input

説明

外部ファイルまたはキーボードからデータベース・テーブルにデータをインポートします。

構文

input into [ owner.]table-name
[ from filename | prompt]
[ format input-format ]
[ escape character character ]
[ escapes { on | off }
[ by order | by name ]
[ delimited by string ]
[ column widths (integer , .. . ) ]
[ nostrip ]
[ ( column-name, .. . ) ]
[ encoding encoding ]
input-format:
ascii | dbase | dbasell| dbaselll
| excel | fixed | foxpro | lotus 
encoding:identifier または string 

パラメータ

encoding − ファイルの読み取りに使用するエンコーディングを指定できます。encoding 句を使用できるのは ASCII フォーマットだけです。

encoding を指定しない場合、Interactive SQL はファイルの読み取りに使用するコード・ページを次のリストのように決定します。このリストで先に示すコード・ページの値は、後に示す値よりも優先されます。

これは、ASCII テキスト・ファイルを使用する input 文の例です。

input into employee
from new_emp.inp
format ASCII 

使用法

パーミッション

テーブルまたはビューの insert パーミッションが必要です。

二次的な影響

なし