mysql
文章平均质量分 59
minGW_Lee
I don't know, Just do it!
展开
-
[Mysql]---Navicat --外键建立与cannot add foreign key constraint分析
用Navicat为MySQL数据库的两个表之间建立外键关系,出现“cannot add foreign key constraint”错误.设计外键的界面,有七列:名(name):可以不填,保存时会自动生成。栏位(FieldName):要设置的外键,如:t_stuschoolregisterinfo 里的IDCard参考数据库(Reference DataBase):外键关联的数据库被参考原创 2017-04-22 09:51:06 · 4774 阅读 · 0 评论 -
PreparedStatement与Statement
关系:PreparedStatement 接口继承 Statement , PreparedStatement 实例包含已编译的SQL 语句,所以其执行速度要快于 Statement 对象。 作为 Statement 的子类,PreparedStatement 继承了 Statement 的所有功能。三种方法execute 、 executeQuery 和 executeUpdate 已被更改以原创 2017-04-25 09:20:14 · 251 阅读 · 0 评论