Lealone-Docs icon indicating copy to clipboard operation
Lealone-Docs copied to clipboard

DDL 使用问题

Open processdatatech opened this issue 1 year ago • 2 comments

create database test 之后 use test 报数据库not found ,而且提示的库名 为大写TEST

processdatatech avatar Jan 16 '24 08:01 processdatatech

如果你用的是 lealone 的客户端访问数据库, use 语句是用来切换 schema,不是切换 database。

用 mysql 的客户端执行 create database test 和 create schema test 是一个意思,因为要兼容 mysql,所以 database 和 schema 是一样的,此时执行 use 语句就是切换 database。

codefollower avatar Jan 24 '24 09:01 codefollower

DDL 、DML 相关的文档可以丰富下

processdatatech avatar Jan 25 '24 02:01 processdatatech