input

Description

Imports data into a database table from an external file or from the keyboard.

Syntax

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 or string 

Parameters

encoding – allows you to specify the encoding that is used to read the file. encoding can be used only with the ASCII format.

If encoding is not specified, Interactive SQL determines the code page that is used to read the file as follows, where code page values occurring earlier in the list take precedence over those occurring later in the list:

Example

This is an example of an input statement from an ASCII text file:

input into employee
from new_emp.inp
format ASCII 

Usage

Permissions

Must have insert permission on the table or view.

Side effects

None.