![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
qq_45567225
这个作者很懒,什么都没留下…
展开
-
数据库触发器
管理数据库对象 一、 索引 作用:加快查询速度 创建 1) 创建表同时创建索引 create table student1 (sno char(4), sname char(20), index ix_sno(sno asc)); 2) 在已经存在的表上创建索引 create index ix_sno on student(sno desc); 查看 show index from studen...原创 2019-12-12 15:34:28 · 80 阅读 · 0 评论 -
数据库基础命令
查询指定列 select sno,sname,ssex from student; 查询所有列 select * from student; 使用计算 select sno,cno,grade*0.6 from sc; 使用列别名 select sno,cno,grade*0.6 as 期末成绩 from sc; 去掉重复 select distinct sno from sc...原创 2019-10-31 17:23:30 · 86 阅读 · 0 评论