10 2017 档案

摘要:Linux 操作命令总结日期 date:show time on the system data 月日时分年 hwclock -s 同步硬件 -w 同步系统file Base /bin 用来存放常用的可执行文件 /sbin 用来存放系统的可执行文件 /dev 设备文件目录 /etc 配置文件目录 挂 阅读全文
posted @ 2017-10-25 20:20 Yif.Z 阅读(206) 评论(0) 推荐(0)
摘要:索引 对数据库表中一列或者多列的值进行排序的结构,提供查询效率分类 1.普通索引 不需要添加任何条件,可以创建任何数据类型,由字段本身的完整性约束决定 2.唯一索引 使用unique参数进行设置,该值必须是唯一的。(主键是一种特殊的唯一索引) 3.全文索引 使用gfulltext参数进行设置,只能创 阅读全文
posted @ 2017-10-17 12:57 Yif.Z 阅读(274) 评论(0) 推荐(0)
摘要:DQL (Date Query Language)查询语法SELECT [ALL | DISTINCT]{*|table.*|[table.field1 [as alias1][table.field2[as alias2]][, …]]}FROM table_name [as table_ ali 阅读全文
posted @ 2017-10-17 08:14 Yif.Z 阅读(253) 评论(0) 推荐(1)
摘要:修改表 修改字段 alter table TableName modify 字段名 列类型【属性】 alter table TableName change 旧字段 新字段 列类型【属性】 修改表名 alter table tablename rename newname; 修改字段/列名 alte 阅读全文
posted @ 2017-10-12 10:21 Yif.Z 阅读(179) 评论(0) 推荐(0)
摘要:创建数据库 create database XXXX;. 创建数据表 create table subject( subjectNo int(11) primary key auto_increment not null comment '课程编号', subjectName varchar(50) 阅读全文
posted @ 2017-10-12 08:46 Yif.Z 阅读(128) 评论(0) 推荐(0)