2012年10月24日
摘要: /** 燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it **/mysql> #学习日期/时间类型mysql> #date型,存储 年-月-日mysql> show tables;ERROR 1046 (3D000): No database selectedmysql> use testDatabase changedmysql> show tables;+----------------+| Tables_in_test |+----------------+| account || class || salar. 阅读全文
posted @ 2012-10-24 22:10 php小二郎 阅读(327) 评论(0) 推荐(0) 编辑
摘要: /** 燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it **/mysql> # 学习tinyint的参数并验证字节与范围的关系mysql> create table class ( -> sname varchar(20) not null default '', -> age tinyint not null default 0 -> )engine myisam charset utf8;Query OK, 0 rows affected (0.33 sec)mysql> desc clas 阅读全文
posted @ 2012-10-24 21:57 php小二郎 阅读(199) 评论(0) 推荐(0) 编辑
摘要: /** 燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it **/create table class(id int primary key auto_increment,sname varchar(10) not null default '',gender char(1) not null default '',company varchar(20) not null default '',salary decimal(6,2) not null default 0.00,fanbu smallin 阅读全文
posted @ 2012-10-24 21:24 php小二郎 阅读(179) 评论(0) 推荐(0) 编辑