摘要: RaisedButton( child:Text('delete'), clipBehavior: Clip.antiAliasWithSaveLayer, color: Colors.orangeAccent, shape: RoundedRectangleBorder(borderRadius: 阅读全文
posted @ 2019-06-14 23:52 braveheart007 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 材料: 阿里云ECS实例; 阿里云RDS数据库服务器(mysql数据库) step1:Xshell登录ECS实例服务器; step2: yum install mysql step3: mysql -h *RDS数据库服务器连接地址(在RDS控制台数据库链接中找到)* -u *username* - 阅读全文
posted @ 2019-06-14 22:29 braveheart007 阅读(5749) 评论(0) 推荐(0) 编辑
摘要: 参考文章https://www.cnblogs.com/franknihao/p/7268752.html https://www.cnblogs.com/sss4/p/9771916.html step1: 获取连接 阅读全文
posted @ 2019-06-14 15:05 braveheart007 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://www.cnblogs.com/goldsunshine/p/9269880.html 阅读目录 一、sqlalchemy体现的外键特性 二、外键和查询 前面的文章中讲解了外键的基础知识和操作,上一篇文章讲解了sqlalchemy的基本操作。前面两篇文章都是作为铺垫,为下面 阅读全文
posted @ 2019-06-14 13:43 braveheart007 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 下面的示例,直接拷贝到sublime,保存为****.py文件,然后运行即可! 备注:用ORM生成数据库没有写在文件内部,在python环境下的命令行工具中输入: from ****** import #### (from test_mysql_orm import News) from ***** 阅读全文
posted @ 2019-06-14 12:07 braveheart007 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 下面的内容直接复制粘贴放到sublime中,保存为******.py文件,然后在python环境下运行即可; '''MySQLdb本身就是python操作mysql数据库的一个插件,python通过MySQLdb实现对数据库的增删改查'''import MySQLdb class MysqlSear 阅读全文
posted @ 2019-06-14 11:53 braveheart007 阅读(309) 评论(0) 推荐(0) 编辑