zoukankan      html  css  js  c++  java
  • 第十章

    create nonclustered index idx_student_name
        on student(student_name desc)
        go
    
    create nonclustered index idx_student_sexbirthday
        on student(student_sex desc,student_birthday)
        with fillfactor = 60
    
    create unique clustered index id_selectcourse_studentcourse
        on selectcourse(selectcourse_studentno,selectcourse_courseno)
        go
    
    sp_helpindex student
    go
    
    sp_rename 'student.idx_student_name','idx_student_nameone'
    go
    
    create statistics idx_student_sex
        on student(student_no,student_name,student_sex)
        with sample 5 percent
    
    drop index student.idx_student_sexbirthday
    go
    
    
    create unique nonclustered index idx_teacher_titleandno
        on teacher(teacher_titlecode,teacher_no desc)
        go
        sp_helpindex teacher
        go
    
    create nonclustered index idx_teacher_departandname
        on teacher(teacher_departmentno desc,teacher_name)
        go
        sp_helpindex teacher
        go
  • 相关阅读:
    MySQL 元数据
    MySQL 复制表
    MySQL 临时表
    MySQL 索引
    MySQL ALTER
    MySQL 事务
    MySQL 正则表达式
    Mysql Join
    Python(数据库之表操作)
    Python知识点复习之__call__
  • 原文地址:https://www.cnblogs.com/King-boy/p/10963678.html
Copyright © 2011-2022 走看看