求助:有关索引名为问题
创建一个基于STU数据库AUTHORS表的视图AU1,然后用CREATE INDEX语句在AU_iname 和au_fname列上创建一个名为au1_index的唯一的聚集索引。请你们帮我从USE STU这句开始翻译。
先在STU数据库中创建一个名为AUTHORS索引代码如下
create table stu.dbo.authors
(
au_id varchar(11) not null,
au_iname varchar(40) not null,
au_fname varchar(20) not null,
phone char(12),
address varchar(40),
city varchar(20),
state char(5),
contract bit not null
)
go
use stu
go
--create view.
create view au1
with schemabinding
as
select au_id,au_iname,au_fname,adress,city,state
from dbo.authors
where state='ca'
go
--create index on the view.
cteate unique clustered index au1_index
on au1(au_iname.au_fname)
go