Skip to main content
You can execute the CREATE FILE statement to create a file. After a file is created, the file is uploaded and persisted in the database. In a database, only an admin user can create and delete files, and all users who have permission to access the database can use the files that belong to the database. Tip This operation requires the SYSTEM-level FILE privilege. You can follow the instructions in GRANT to grant this privilege.

Basic concepts

File: refers to the file that is created and saved in the database. After a file is created and stored in the database, the database assigns a unique ID to the file. You can find a file based on the database name, catalog, and file name.

Syntax

Parameters

Configuration items of properties

Examples

  • Create a file named test.pem under the category named kafka.
  • Create a file named client.key under the category named my_catalog.