home *** CD-ROM | disk | FTP | other *** search
- use pubs
- go
-
- drop table author2
- go
-
- create table author2 (
- au_id id,
- au_lname varchar(40),
- au_fname varchar(20),
- phone char(12),
- address varchar(40) NULL,
- city varchar(20) NULL,
- state char(2) NULL,
- zip char(5) NULL,
- contract bit,
- timestamp timestamp)
- go
-
- create unique clustered index auidind on author2 (
- au_id )
- go
-
- create index aunmind on author2 (
- au_lname,
- au_fname )
- go
-
-
- insert author2 (au_id,au_lname,au_fname,phone,address,city,state,zip,contract)
- select au_id,au_lname,au_fname,phone,address,city,state,zip,contract
- from authors
-
- go
-