摘要: 截取书中内容留作学习。。。。 1、整数类型 2、浮点数与定点数类型 3、日期时间类型 向数据库中插入当前系统时间:CURRENT_TIME或者NOW() 4、文本字符串类型 MySQL枚举类型:create table test(enm ENUM("first","second","third")) 阅读全文
posted @ 2018-11-08 20:28 SunQi 阅读(151) 评论(0) 推荐(0) 编辑
摘要: alter table 主表名 add constraint 外键名 foreign key (主表外键列) references 从表名(从表主键列); 阅读全文
posted @ 2018-11-08 16:10 SunQi 阅读(205) 评论(0) 推荐(0) 编辑