//------------ 建表 ------------
CREATE TABLE Person ( LastName varchar(30), FirstName varchar(30), Address varchar(30), Age int(3) )
//------------ 建索引 ------------
CREATE INDEX PersonIndex ON Person (LastName)
//------------ 建降序索引 ------------
CREATE INDEX PersonIndex ON Person (LastName DESC)
//------------ 建多个索引 ------------
CREATE INDEX PersonIndex ON Person (LastName, FirstName)
原文地址:https://www.cnblogs.com/kongxc/p/9310836.html
时间: 2024-10-04 18:57:28