Skip to content
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

Update sqlalchemy-python-crud-demo.md #817

Merged
merged 1 commit into from
Nov 27, 2023
Merged
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
11 changes: 1 addition & 10 deletions docs/MatrixOne/Tutorial/sqlalchemy-python-crud-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
python3 -V
```

- 确认你已完成安装 MySQL。
- 确认你已完成安装 MySQL 客户端

- 下载安装 `sqlalchemy`、`pymysql`、`cryptography` 和 `faker` 工具。

Expand All @@ -58,15 +58,6 @@

在下面的代码示例中,将创建一个 `Customer` 类,它定义的 `Customer` 的代码相当于一条 SQL 语句,它表示 MatrixOne 中的命名为 `Customer` 的表:

xuanyiLee marked this conversation as resolved.
Show resolved Hide resolved
```
CREATE TABLE `User` (
`id` INT NOT NULL AUTO_INCREMENT,
`cname` VARCHAR(64) DEFAULT NULL,
`caddress` VARCHAR(512) DEFAULT NULL,
PRIMARY KEY (`id`)
)
```

新建一个 `sqlalchemy_create.py` 的文本文件,将以下代码拷贝粘贴到文件内:

```
Expand Down