04 2013 档案

摘要:mysql>select * from student;mysql>select *from student where id=901;mysql>select * from student where id in(903,910);mysql>select * from student where name like "张三";mysql>select distinct sex from student;mysql>select * from student order by birth; 阅读全文
posted @ 2013-04-10 15:11 瑾 梦 阅读(120) 评论(0) 推荐(0)
摘要:今天是工作一周年的日子啦,回顾这一年里,除了工作用到的东西,自己学习的东西少之又少。。每天都是一个新的开始,就算只有一点点进步,也别放弃!Mysql和Linux!两者学习中。。。 阅读全文
posted @ 2013-04-10 14:54 瑾 梦 阅读(95) 评论(0) 推荐(0)
摘要:---恢复内容开始---Index classfication 索引分类1.General index 普通索引 mysql>create table index1( >id int, >name varchar(25), >sex boolean, >index(id) >);2 Unique index唯一性索引 mysql>create table index2( >id int unique, >name varchar(20), >unique index index2_id(id ASC) >);3.... 阅读全文
posted @ 2013-04-03 14:19 瑾 梦 阅读(203) 评论(0) 推荐(0)
摘要:mysql>alter table student rename person; 修改表的名字mysql>alter table person name varchar(20);修改字段的数据类型,name为字段mysql>alter table change stu_name name varchar(20);修改字段的名字mysql>alter table person add sex boolean;添加无完整性约束条件的字段mysql>alter table person add age int not null;添加有完整性约束条件的字段 阅读全文
posted @ 2013-04-02 11:04 瑾 梦 阅读(111) 评论(0) 推荐(0)