⌘+k ctrl+k
1.3 (稳定版)
搜索快捷键 cmd + k | ctrl + k
USE 语句

USE 语句选择要使用的数据库和可选的模式,或者仅选择一个模式作为默认值。

示例

--- Sets the 'memory' database as the default. Will use 'main' schema implicitly or error
--- if it does not exist.
USE memory;
--- Sets the 'duck.main' database and schema as the default
USE duck.main;
-- Sets the `main` schema of the currently selected database as the default, in this case 'duck.main'
USE main;

语法

USE 语句设置默认数据库、模式或数据库/模式组合,以供将来操作使用。例如,在未提供完全限定表名的情况下创建的表将会在默认数据库中创建。