[原文链接:https://www.dubby.cn/detail.html?id=9113](https://www.dubby.cn/detail.html?id=9113) # 依赖 先下载`go-sql-driver/mysql`: ``` go get -u github.com/go-sql-driver/mysql ``` # 数据库 建表: ``` CREATE TABLE `data` ( `id` bigint(10) NOT NULL...
[原文链接:https://www.dubby.cn/detail.html?id=9113](https://www.dubby.cn/detail.html?id=9113) # 依赖 先下载`go-sql-driver/mysql`: ``` go get -u github.com/go-sql-driver/mysql ``` # 数据库 建表: ``` CREATE TABLE `data` ( `id` bigint(10) NOT NULL...