Skip to content

import into: auto detect data source format #20496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-import-into.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ SET 表达式左侧只能引用 `ColumnNameOrUserVarList` 中没有的列名。

### Format

`IMPORT INTO` 支持 3 种数据文件格式,包括 `CSV`、`SQL` 和 `PARQUET`。当不指定该参数时,默认格式为 `CSV`。
`IMPORT INTO` 支持 3 种数据文件格式,包括 `CSV`、`SQL` 和 `PARQUET`。当不指定该参数时,根据文件名特征自动识别文件类型,如果文件名不包含文件后缀,会使用默认格式 `CSV`。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`IMPORT INTO` 支持 3 种数据文件格式,包括 `CSV``SQL``PARQUET`当不指定该参数时,根据文件名特征自动识别文件类型,如果文件名不包含文件后缀,会使用默认格式 `CSV`
`IMPORT INTO` 支持 3 种数据文件格式,包括 `CSV``SQL``PARQUET`如果未显式指定该参数,TiDB 会根据文件名的后缀自动识别文件类型。若文件名不包含后缀,则默认使用 `CSV` 格式


### WithOptions

Expand Down