码迷,mamicode.com
首页 > 数据库 > 详细

Microsoft-PetSop4.0(宠物商店)-数据库设计-Oracle

时间:2014-10-14 14:42:18      阅读:367      评论:0      收藏:0      [点我收藏+]

标签:des   返回顶部   style   blog   http   color   io   os   ar   

ylbtech-DatabaseDesgin:Microsoft-PetSop4.0(宠物商店)-数据库设计-Oracle

DatabaseName:PetShop(宠物商店)

Model:宠物商店网站,批量创建用户

Type:专业网站

Url:

1.A,数据库关系图(Database Diagram) 返回顶部

 

1.B,数据库设计脚本(Database Design Script)返回顶部

1.B.1,删除用户

1.B.1.1,DropDatabase1.sql

DROP USER MSPETSHOP4 CASCADE;

1.B.1.2,DropDatabase2.sql

DROP USER MSPETSHOP4ORDERS CASCADE;

1.B.1.3,DropDatabase3.sql

DROP USER MSPETSHOP4PROFILE CASCADE;

1.B.1.4,DropDatabase4.sql

DROP USER MSPETSHOP4SERVICES CASCADE;

1.B.2,创建用户并创建表

1.B.2.1,CreateTables1.sql

bubuko.com,布布扣
CREATE USER MSPETSHOP4 IDENTIFIED BY "pass@word1" DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS; 

GRANT CREATE SESSION TO MSPETSHOP4; 
    
CREATE TABLE MSPETSHOP4.SUPPLIER (
    SuppId int NOT NULL,
    Name varchar(80) NULL,
    Status varchar(2) NOT NULL,
    Addr1 varchar(80) NULL,
    Addr2 varchar(80) NULL,
    City varchar(80) NULL,
    State varchar(80) NULL,
    Zip varchar(5) NULL,
    Phone varchar(80) NULL,
    CONSTRAINT PK_SUPPLIER PRIMARY KEY (SuppId) );

CREATE TABLE MSPETSHOP4.CATEGORY (
    CategoryId  varchar(10) NOT NULL,
    Name varchar(80) NULL,
    Descn varchar(255) NULL,
    CONSTRAINT PK_CATEGORY PRIMARY KEY (CategoryId) );

CREATE TABLE MSPETSHOP4.PRODUCT (
    ProductId varchar(10) NOT NULL,
    CategoryId varchar(10) NOT NULL,
    Name varchar(80) NULL,
    Descn varchar(255) NULL,
    Image varchar(80) NULL,
    CONSTRAINT PK_PRODUCT PRIMARY KEY (ProductId),
        CONSTRAINT FK_PRODUCT FOREIGN KEY (CategoryId)
        REFERENCES MSPETSHOP4.CATEGORY (CategoryId) );
        
CREATE TABLE MSPETSHOP4.ITEM (
    ItemId varchar(10) NOT NULL,
    ProductId varchar(10) NOT NULL,
    ListPrice decimal(10,2) NULL,
    UnitCost decimal(10,2) NULL,
    Supplier int NULL,
    Status varchar(2) NULL,
    Name varchar(80) NULL,
    Image varchar(80) NULL,
    CONSTRAINT PK_ITEM PRIMARY KEY (ItemId),
        CONSTRAINT FK_ITEM_1 FOREIGN KEY (ProductId)
        REFERENCES MSPETSHOP4.PRODUCT (ProductId),
        CONSTRAINT FK_ITEM_2 FOREIGN KEY (Supplier)
        REFERENCES MSPETSHOP4.SUPPLIER (SuppId) );
        
CREATE TABLE MSPETSHOP4.INVENTORY (
    ItemId varchar(10) NOT NULL,
    Qty int NOT NULL,
    CONSTRAINT PK_INVENTORY PRIMARY KEY(ItemId) );
    
CREATE INDEX MSPETSHOP4.IX_ITEM 
    ON MSPETSHOP4.ITEM (ProductId, ItemId, ListPrice, NAME);

CREATE INDEX MSPETSHOP4.IX_PRODUCT1
    ON MSPETSHOP4.PRODUCT (NAME);

CREATE INDEX MSPETSHOP4.IX_PRODUCT2
    ON MSPETSHOP4.PRODUCT (CategoryId);

CREATE INDEX MSPETSHOP4.IX_PRODUCT3
    ON MSPETSHOP4.PRODUCT (CategoryId, Name);

CREATE INDEX MSPETSHOP4.IX_PRODUCT4
    ON MSPETSHOP4.PRODUCT (CategoryId, ProductId, Name);
View Code

1.B.2.2,CreateTables2.sql

bubuko.com,布布扣
CREATE USER MSPETSHOP4ORDERS IDENTIFIED BY "pass@word1" DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS; 

GRANT CREATE SESSION TO MSPETSHOP4ORDERS; 

CREATE TABLE MSPETSHOP4ORDERS.ORDERS (
    OrderId int NOT NULL,
    UserId varchar(80) NOT NULL,
    OrderDate date NOT NULL,
    ShipAddr1 varchar(80) NOT NULL,
    ShipAddr2 varchar(80) NULL,
    ShipCity varchar(80) NOT NULL,
    ShipState varchar(80) NOT NULL,
    ShipZip varchar(20) NOT NULL,
    ShipCountry varchar(20) NOT NULL,
    BillAddr1 varchar(80) NOT NULL,
    BillAddr2 varchar(80)  NULL,
    BillCity varchar(80) NOT NULL,
    BillState varchar(80) NOT NULL,
    BillZip varchar(20) NOT NULL,
    BillCountry varchar(20) NOT NULL,
    Courier varchar(80) NOT NULL,
    TotalPrice number(10,2) NOT NULL,
    BillToFirstName varchar(80) NOT NULL,
    BillToLastName varchar(80) NOT NULL,
    ShipToFirstName varchar(80) NOT NULL,
    ShipToLastName varchar(80) NOT NULL,
    AuthorizationNumber int NOT NULL,
    Locale varchar(20) NOT NULL,
    CONSTRAINT PK_ORDERS PRIMARY KEY (OrderId) );

CREATE TABLE MSPETSHOP4ORDERS.ORDERSTATUS (
    OrderId int NOT NULL,
    LineNum int NOT NULL,
    Timestamp date NOT NULL,
    Status varchar(2) NOT NULL,
    CONSTRAINT PK_ORDERSTATUS PRIMARY KEY (orderid, linenum),
        CONSTRAINT FK_ORDERSTATUS FOREIGN KEY (orderid)
        REFERENCES MSPETSHOP4ORDERS.ORDERS (OrderId) );
        
CREATE TABLE MSPETSHOP4ORDERS.LINEITEM (
    OrderId int NOT NULL,
    LineNum int NOT NULL,
    ItemId varchar(10) NOT NULL,
    Quantity int NOT NULL,
    UnitPrice number(10,2) NOT NULL,
    CONSTRAINT PK_LINEITEM PRIMARY KEY (OrderId, LineNum),
        CONSTRAINT FK_LINEITEM FOREIGN KEY (OrderId)
        REFERENCES MSPETSHOP4ORDERS.ORDERS (OrderId) );
        
CREATE SEQUENCE MSPETSHOP4ORDERS.ORDERNUM INCREMENT BY 1 START WITH 1 MAXVALUE 1.0E27 MINVALUE 1 NOCYCLE CACHE 10000 NOORDER;
View Code

1.B.2.3,CreateTables3.sql

bubuko.com,布布扣
CREATE USER MSPETSHOP4PROFILE  PROFILE DEFAULT IDENTIFIED BY "pass@word1" DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS;
                           
GRANT CREATE SESSION TO MSPETSHOP4PROFILE; 
    
CREATE TABLE MSPETSHOP4PROFILE.PROFILES (
    UniqueId number NOT NULL, 
    UserName varchar2(256 byte) NOT NULL, 
    ApplicationName varchar2(256 byte) NOT NULL, 
    IsAnonymous char(1 byte) NOT NULL, 
    LastActivityDate date NOT NULL, 
    LastUpdatedDate date NOT NULL,
    CONSTRAINT PK_PROFILES_1 PRIMARY KEY(UniqueId) 
        USING INDEX);
    
CREATE TABLE MSPETSHOP4PROFILE.CART (
    UniqueId number NOT NULL, 
    ItemId varchar2(10 byte) NOT NULL, 
    Name varchar2(80 byte) NOT NULL, 
    Type varchar2(80 byte) NOT NULL, 
    Price number(10, 2) NOT NULL, 
    CategoryId varchar2(10 byte) NOT NULL, 
    ProductId varchar2(10 byte) NOT NULL, 
    IsShoppingCart char(1 byte) NOT NULL, 
    Quantity number(10) NOT NULL,     
    CONSTRAINT FK_CART_PROFILES FOREIGN KEY(UniqueId) 
        REFERENCES MSPETSHOP4PROFILE.PROFILES(UniqueId) 
        ON DELETE CASCADE);
    
CREATE TABLE MSPETSHOP4PROFILE.ACCOUNT (
    UniqueId number(10)NOT NULL, 
    Email varchar2(80 byte), 
    FirstName varchar2(80 byte), 
    LastName varchar2(80 byte), 
    Address1 varchar2(80 byte), 
    Address2 varchar2(80 byte), 
    City varchar2(80 byte),
    State varchar2(80 byte), 
    Zip varchar2(20 byte), 
    Country varchar2(20 byte), 
    Phone varchar2(20 byte), 
    CONSTRAINT FK_ACCOUNT_PROFILES FOREIGN KEY(UniqueId) 
        REFERENCES MSPETSHOP4PROFILE.PROFILES(UniqueId) 
        ON DELETE CASCADE);  
    
CREATE SEQUENCE MSPETSHOP4PROFILE.UNIQUEID INCREMENT BY 1 
    START WITH 1 MAXVALUE 1.0E27 MINVALUE 1 NOCYCLE 
    CACHE 10000 NOORDER;    

CREATE INDEX MSPETSHOP4PROFILE.FK_CART_UNIQUEID 
    ON MSPETSHOP4PROFILE.CART  (UniqueId);
    
CREATE INDEX MSPETSHOP4PROFILE.FK_ACCOUNT_UNIQUEID 
    ON MSPETSHOP4PROFILE.ACCOUNT  (UniqueId);
    
CREATE UNIQUE INDEX MSPETSHOP4PROFILE.IX_USERNAME_APPNAME 
    ON MSPETSHOP4PROFILE.PROFILES  (UserName, ApplicationName);
    
CREATE BITMAP INDEX MSPETSHOP4PROFILE.IX_SHOPPINGCART 
    ON MSPETSHOP4PROFILE.CART  (IsShoppingCart);
View Code

1.B.2.4,CreateTables4.sql

bubuko.com,布布扣
CREATE USER MSPETSHOP4SERVICES  PROFILE DEFAULT IDENTIFIED BY "pass@word1" DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS;
                           
GRANT CREATE SESSION TO MSPETSHOP4SERVICES; 

CREATE SEQUENCE MSPETSHOP4SERVICES.USERID INCREMENT BY 1 
    START WITH 1 MAXVALUE 1.0E27 MINVALUE 1 NOCYCLE 
    CACHE 10000 ORDER;   

CREATE SEQUENCE MSPETSHOP4SERVICES.APPLICATIONID INCREMENT BY 1 
    START WITH 1 MAXVALUE 1.0E27 MINVALUE 1 NOCYCLE 
    CACHE 10000 ORDER;   

CREATE TABLE MSPETSHOP4SERVICES.APPLICATIONS (
    ApplicationName varchar2(256 byte) NOT NULL, 
    ApplicationId number(10) NOT NULL, 
    Description varchar2(256 byte), 
    CONSTRAINT PK_APPLICATIONS PRIMARY KEY(ApplicationId),
    CONSTRAINT UC_APPLICATIONS1 UNIQUE(ApplicationName));

CREATE TABLE MSPETSHOP4SERVICES.USERS (
    UserId number NOT NULL, 
    ApplicationId number NOT NULL,
    UserName varchar2(256 byte) NOT NULL, 
    MobileAlias varchar2(16 byte),
    IsAnonymous char(1 byte) NOT NULL, 
    LastActivityDate date NOT NULL,
    CONSTRAINT PK_USERS PRIMARY KEY(UserId),
    CONSTRAINT FK_USERS_APPLICATIONS FOREIGN KEY(ApplicationId) 
        REFERENCES MSPETSHOP4SERVICES.APPLICATIONS(ApplicationId) 
        ON DELETE CASCADE);

CREATE TABLE MSPETSHOP4SERVICES.MEMBERSHIP (
    UserId number NOT NULL, 
    Password varchar2(128 byte) NOT NULL, 
    PasswordFormat number NOT NULL,
    MobilePin varchar2(16 byte),
    Email varchar2(128 byte), 
    PasswordQuestion varchar2(256 byte),
    PasswordAnswer varchar2(128 byte),   
    IsApproved char(1 byte) NOT NULL,
    CreatedDate date NOT NULL,
    LastLoginDate date NOT NULL,        
    LastPasswordChangedDate date NOT NULL,
    "Comment" varchar2(4000 byte),
    PasswordSalt varchar2(128 byte),
    CONSTRAINT PK_MEMBERSHIP PRIMARY KEY(UserId),
    CONSTRAINT FK_MEMBERSHIP_USERS FOREIGN KEY(UserId) 
        REFERENCES MSPETSHOP4SERVICES.USERS(UserId) 
        ON DELETE CASCADE);   

CREATE INDEX MSPETSHOP4SERVICES.IX_USERNAME 
    ON MSPETSHOP4SERVICES.USERS  (UserName) 
    TABLESPACE USERS;
View Code

1.B.2,导入测试数据

1.B.2.1,LoadTables1.sql

bubuko.com,布布扣
INSERT INTO MSPETSHOP4.CATEGORY VALUES (FISH, Fish, Fish);
INSERT INTO MSPETSHOP4.CATEGORY VALUES (BYARD, Backyard,Backyard);
INSERT INTO MSPETSHOP4.CATEGORY VALUES (BIRDS, Birds, Birds);
INSERT INTO MSPETSHOP4.CATEGORY VALUES (BUGS, Bugs, Bugs);
INSERT INTO MSPETSHOP4.CATEGORY VALUES (EDANGER, Endangered, Endangered);

INSERT INTO MSPETSHOP4.SUPPLIER VALUES (1, XYZ Pets, AC, 600 Avon Way, ‘‘, Los Angeles, CA, 94024, 212-947-0797);
INSERT INTO MSPETSHOP4.SUPPLIER VALUES (2, ABC Pets, AC, 700 Abalone Way, ‘‘, San Francisco, CA, 94024, 415-947-0797);

INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-01, FISH, Meno, Your worried tiny friend warns you about life‘‘s dangers, ~/Prod_Images/Fish/icon-meno.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-02, FISH, Balloonfish, It‘‘s your thermometer - the hotter it gets the bigger it gets, ~/Prod_Images/Fish/icon-ballonfish.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-03, FISH, Blindfish, Likes pressure - ideal for divorcing couples, ~/Prod_Images/Fish/icon-blindfish.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-04, FISH, Crabfish, Dances and sings every time you feed it!, ~/Prod_Images/Fish/icon-Crabfish.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-05, FISH, Eucalyptus, For the tickle on your hands: you‘‘ll love the massage, ~/Prod_Images/Fish/icon-eucalyptus.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-06, FISH, Mister No, Need a companion for the dark times?, ~/Prod_Images/Fish/icon-misterno.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-07, FISH, Nosyfish, Don‘‘t underestimate this one - it bites!, ~/Prod_Images/Fish/icon-nosyfish.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (FI-08, FISH, Tooth Ferry, Very sensitive vegetarian, needs food every two months, ~/Prod_Images/Fish/icon-toothferry.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-01, BYARD, Sheep, Your soft hugging buddy, ~/Prod_Images/Backyard/icon-sheep.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-02, BYARD, Cat, The friend you will never see, ~/Prod_Images/Backyard/icon-cat.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-03, BYARD, Raccoon, Always keeps your dishes clean, ~/Prod_Images/Backyard/icon-raccoon.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-04, BYARD, Goose, For your protection delivered in our special safety-bag, ~/Prod_Images/Backyard/icon-goose.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-05, BYARD, Crab, The common house crab which lives in the refrigerator, ~/Prod_Images/Backyard/icon-crab.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-06, BYARD, Skunk, You will love it - especially when you have your in-laws visiting, ~/Prod_Images/Backyard/icon-skunk.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BY-07, BYARD, Zebra, The horse of the modern girl, ~/Prod_Images/Backyard/icon-zebra.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BD-01, BIRDS, Pelican, Will sit in your garden and admire nature, ~/Prod_Images/Birds/icon-pelican.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BD-02, BIRDS, Penguin, Guaranteed to stay by your side, ~/Prod_Images/Birds/icon-penguin.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BD-03, BIRDS, Pteranodon, Can‘‘t let go of the past? This is your bird, ~/Prod_Images/Birds/icon-pteranodon.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BD-04, BIRDS, Owl, Your personal dictionary ?night & day, ~/Prod_Images/Birds/icon-owl.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BD-05, BIRDS, Duck, Lisps but otherwise sings well, ~/Prod_Images/Birds/icon-duck.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BG-01, BUGS, Ant, Trash your vacuum cleaner, ~/Prod_Images/Bugs/icon-ant.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BG-02, BUGS, Butterfly, Increased beauty with age, ~/Prod_Images/Bugs/icon-butterfly.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BG-03, BUGS, Spider, Loves a good massage, ~/Prod_Images/Bugs/icon-spider.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BG-04, BUGS, Slug, Your soft hugging buddy, ~/Prod_Images/Bugs/icon-slug.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BG-05, BUGS, Frog, Want to get rid of an insect previously bought?, ~/Prod_Images/Bugs/icon-frog.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (BG-06, BUGS, Dragonfly, Beware of the meat lover, ~/Prod_Images/Bugs/icon-dragonfly.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (DR-01, EDANGER, Skeleton, Dumb but hollow, ~/Prod_Images/Endangered/icon-skeleton.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (DR-02, EDANGER, Pet, The originals ?honestly!, ~/Prod_Images/Endangered/icon-pet.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (DR-03, EDANGER, Dino, Special offer: only for a limited time, ~/Prod_Images/Endangered/icon-dino.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (DR-04, EDANGER, Panda, Last one ?go for it!, ~/Prod_Images/Endangered/icon-panda.gif);
INSERT INTO MSPETSHOP4.PRODUCT VALUES (DR-05, EDANGER, Fish, They are waiting for your help, ~/Prod_Images/Endangered/icon-fish.gif);

INSERT INTO MSPETSHOP4.ITEM VALUES (EST-1, FI-01, 16.50, 10.00, 1, P, Happy, ~/Prod_Images/Fish/item-meno-happy.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-2, FI-01, 17.50, 10.00, 1, P, Camouflage, ~/Prod_Images/Fish/item-meno-camouflage.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-3, FI-01, 15.90, 10.00, 1, P, Worried, ~/Prod_Images/Fish/item-meno-worried.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-4, FI-02, 17.50, 12.00, 1, P, Extra Stretch, ~/Prod_Images/Fish/item-balloon-extra-stretch.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-5, FI-02, 18.90, 12.00, 1, P, Natural, ~/Prod_Images/Fish/item-balloon-natural.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-6, FI-02, 19.50, 12.00, 1, P, Flammable, ~/Prod_Images/Fish/item-balloon-flammable.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-7, FI-03, 21.50, 15.00, 1, P, Blind, ~/Prod_Images/Fish/item-blindfish-blind.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-8, FI-03, 22.50, 15.00, 1, P, Short Sighted, ~/Prod_Images/Fish/item-blindfish-shortsighted.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-9, FI-03, 24.50, 15.00, 1, P, Far Sighted, ~/Prod_Images/Fish/item-blindfish-farsighted.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-10, FI-04, 18.50, 12.00, 1, P, Tap Dance, ~/Prod_Images/Fish/item-Crabfish-tabdance.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-11, FI-04, 19.50, 12.00, 1, P, Ballet, ~/Prod_Images/Fish/item-Crabfish-ballet.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-12, FI-04, 18.90, 12.00, 1, P, Ballroom, ~/Prod_Images/Fish/item-Crabfish-ballroom.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-13, FI-05, 16.50, 10.00, 1, P, Long Arms, ~/Prod_Images/Fish/item-eucalyptus-longarms.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-14, FI-05, 16.90, 10.00, 1, P, Short Arms, ~/Prod_Images/Fish/item-eucalyptus-shortarms.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-15, FI-06, 13.90, 8.00, 1, P, Black, ~/Prod_Images/Fish/item-misterno-black.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-16, FI-06, 14.50, 8.00, 1, P, Sepia, ~/Prod_Images/Fish/item-misterno-sepia.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-17, FI-06, 15.50, 8.00, 1, P, Sable, ~/Prod_Images/Fish/item-misterno-sable.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-18, FI-07, 16.50, 10.00, 1, P, Invidious, ~/Prod_Images/Fish/item-nosyfish-invidious.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-19, FI-07, 17.50, 10.00, 1, P, Beastly, ~/Prod_Images/Fish/item-nosyfish-beastly.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-20, FI-07, 18.50, 10.00, 1, P, Mean, ~/Prod_Images/Fish/item-nosyfish-mean.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-21, FI-07, 19.50, 10.00, 1, P, Sneaky, ~/Prod_Images/Fish/item-nosyfish-sneaky.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-22, FI-08, 28.50, 20.00, 1, P, Toothless, ~/Prod_Images/Fish/item-toothferry-toothless.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-23, FI-08, 29.50, 20.00, 1, P, With Teeth, ~/Prod_Images/Fish/item-toothferry-withteeth.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-24, BY-01, 120.95, 99.00, 1, P, Fuzzy, ~/Prod_Images/Backyard/item-sheep-fuzzy.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-25, BY-01, 130.95, 99.00, 1, P, Ironed, ~/Prod_Images/Backyard/item-sheep-ironed.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-26, BY-02, 14.95, 2.00, 1, P, Transparent, ~/Prod_Images/Backyard/item-cat-transparent.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-27, BY-02, 15.95, 2.00, 1, P, Patterned, ~/Prod_Images/Backyard/item-cat-patterned.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-28, BY-02, 18.95, 2.00, 1, P, Uncolored, ~/Prod_Images/Backyard/item-cat-uncolored.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-29, BY-03, 42.95, 30.00, 1, P, Long Tongue, ~/Prod_Images/Backyard/item-raccoon-long-tongue.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-30, BY-03, 45.95, 30.00, 1, P, Rough Tongue, ~/Prod_Images/Backyard/item-raccoon-rough-tongue.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-31, BY-03, 48.95, 30.00, 1, P, Hairy Tongue, ~/Prod_Images/Backyard/item-raccoon-hairy-tongue.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-32, BY-04, 20.95, 12.00, 1, P, Feathered, ~/Prod_Images/Backyard/item-goose-feathered.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-33, BY-04, 22.95, 12.00, 1, P, Plucked, ~/Prod_Images/Backyard/item-goose-plucked.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-34, BY-05, 12.95, 10.00, 1, P, Red, ~/Prod_Images/Backyard/item-crab-red.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-35, BY-05, 13.95, 10.00, 1, P, Orange, ~/Prod_Images/Backyard/item-crab-orange.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-36, BY-05, 14.95, 10.00, 1, P, Dotted, ~/Prod_Images/Backyard/item-crab-dotted.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-37, BY-06, 18.95, 12.00, 1, P, Bad Smell, ~/Prod_Images/Backyard/item-skunk-bad-smell.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-38, BY-06, 20.95, 12.00, 1, P, Really Bad Smell, ~/Prod_Images/Backyard/item-skunk-really-bad-smell.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-39, BY-06, 22.95, 12.00, 1, P, Worst Smell, ~/Prod_Images/Backyard/item-skunk-worst-smell.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-40, BY-07, 859.95, 500.00, 1, P, Tiny, ~/Prod_Images/Backyard/item-zebra-tiny.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-41, BY-07, 879.95, 500.00, 1, P, Small, ~/Prod_Images/Backyard/item-zebra-small.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-42, BY-07, 899.95, 500.00, 1, P, Medium, ~/Prod_Images/Backyard/item-zebra-medium.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-43, BY-07, 949.95, 500.00, 1, P, Large, ~/Prod_Images/Backyard/item-zebra-large.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-44, BD-01, 41.95, 30.00, 1, P, Flower Loving, ~/Prod_Images/Birds/item-pelican-flowerloving.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-45, BD-01, 45.95, 30.00, 1, P, Grass Loving, ~/Prod_Images/Birds/item-pelican-grassloving.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-46, BD-02, 120.99, 99.00, 1, P, Adventurous, ~/Prod_Images/Birds/item-penguine-adventurous.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-47, BD-02, 130.99, 99.00, 1, P, Homey, ~/Prod_Images/Birds/item-penguine-homey.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-48, BD-03, 130.99, 99.00, 1, P, Old, ~/Prod_Images/Birds/item-pteranodon-old.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-49, BD-03, 130.99, 99.00, 1, P, Ancient, ~/Prod_Images/Birds/item-pteranodon-ancient.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-50, BD-04, 80.99, 50.00, 1, P, Day, ~/Prod_Images/Birds/item-owl-day.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-51, BD-04, 85.99, 50.00, 1, P, Night, ~/Prod_Images/Birds/item-owl-night.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-52, BD-05, 33.99, 20.00, 1, P, Domestic, ~/Prod_Images/Birds/item-duck-domestic.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-53, BD-05, 38.99, 20.00, 1, P, Wild, ~/Prod_Images/Birds/item-duck-wild.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-54, BG-01, 0.25, 0.02, 1, P, Worker, ~/Prod_Images/Bugs/item-ant-worker.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-55, BG-01, 0.30, 0.02, 1, P, Queen, ~/Prod_Images/Bugs/item-ant-queen.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-56, BG-01, 0.50, 0.02, 1, P, Soldier, ~/Prod_Images/Bugs/item-ant-soldier.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-57, BG-02, 0.70, 0.10, 1, P, Larva, ~/Prod_Images/Bugs/item-butterfly-larva.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-58, BG-02, 0.80, 0.10, 1, P, Pupa, ~/Prod_Images/Bugs/item-butterfly-pupa.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-59, BG-02, 0.90, 0.10, 1, P, Adult, ~/Prod_Images/Bugs/item-butterfly-adult.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-60, BG-03, 2.50, 1.00, 1, P, Araniella Displicata, ~/Prod_Images/Bugs/item-spider-aranielladisplicata.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-61, BG-03, 2.60, 1.00, 1, P, Dysdera Crocata, ~/Prod_Images/Bugs/item-spider-dysderacrocata.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-62, BG-04, 0.89, 0.15, 1, P, Naked, ~/Prod_Images/Bugs/item-slug-naked.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-63, BG-04, 0.99, 0.15, 1, P, Habitat, ~/Prod_Images/Bugs/item-slug-habitat.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-64, BG-05, 8.99, 2.50, 1, P, False, ~/Prod_Images/Bugs/item-frog-false.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-65, BG-05, 9.99, 2.50, 1, P, True, ~/Prod_Images/Bugs/item-frog-true.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-66, BG-06, 1.20, 0.80, 1, P, Omnivore, ~/Prod_Images/Bugs/item-dragonfly-omnivore.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-67, BG-06, 1.30, 0.80, 1, P, Vegetarian, ~/Prod_Images/Bugs/item-dragonfly-vegetarian.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-68, BG-06, 1.40, 0.80, 1, P, Vegan, ~/Prod_Images/Bugs/item-dragonfly-vegan.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-69, DR-01, 150.00, 100.00, 1, P, Male, ~/Prod_Images/Endangered/item-skeleton-male.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-70, DR-01, 160.00, 100.00, 1, P, Female, ~/Prod_Images/Endangered/item-skeleton-female.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-71, DR-01, 170.00, 100.00, 1, P, Aphrodite, ~/Prod_Images/Endangered/item-skeleton-aphrodite.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-72, DR-01, 180.00, 100.00, 1, P, Hermaphrodite, ~/Prod_Images/Endangered/item-skeleton-hermaphrodite.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-73, DR-02, 45.00, 22.00, 1, P, Rover, ~/Prod_Images/Endangered/item-pet-rover.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-74, DR-02, 48.00, 22.00, 1, P, Trumpet, ~/Prod_Images/Endangered/item-pet-thumper.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-75, DR-02, 49.00, 22.00, 1, P, Kitty, ~/Prod_Images/Endangered/item-pet-kitty.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-76, DR-03, 349.00, 220.00, 1, P, Spiky, ~/Prod_Images/Endangered/item-dino-spiky.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-77, DR-03, 379.00, 220.00, 1, P, Shaved, ~/Prod_Images/Endangered/item-dino-shaved.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-78, DR-03, 399.00, 220.00, 1, P, Pointy, ~/Prod_Images/Endangered/item-dino-pointy.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-79, DR-04, 1999.00, 1500.00, 1, P, Exclusive, ~/Prod_Images/Endangered/item-panda-exclusive.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-80, DR-05, 22.95, 16.00, 1, P, Lost, ~/Prod_Images/Endangered/item-fish-lost.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-81, DR-05, 22.95, 16.00, 1, P, Drunk, ~/Prod_Images/Endangered/item-fish-drunk.gif);
INSERT INTO MSPETSHOP4.ITEM VALUES (EST-82, DR-05, 22.95, 16.00, 1, P, Caught, ~/Prod_Images/Endangered/item-fish-caught.gif);

INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-1, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-2, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-3, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-4, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-5, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-6, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-7, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-8, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-9, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-10, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-11, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-12, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-13, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-14, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-15, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-16, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-17, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-18, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-19, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-20, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-21, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-22, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-23, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-24, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-25, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-26, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-27, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-28, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-29, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-30, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-31, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-32, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-33, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-34, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-35, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-36, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-37, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-38, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-39, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-40, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-41, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-42, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-43, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-44, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-45, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-46, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-47, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-48, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-49, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-50, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-51, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-52, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-53, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-54, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-55, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-56, 10000);  
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-57, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-58, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-59, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-60, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-61, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-62, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-63, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-64, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-65, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-66, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-67, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-68, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-69, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-70, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-71, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-72, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-73, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-74, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-75, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-76, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-77, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-78, 10000);   
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-79, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-80, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-81, 10000);
INSERT INTO MSPETSHOP4.INVENTORY VALUES (EST-82, 10000);
View Code

1.B.2.2,

1.C,功能实现代码(Function Implementation Code)返回顶部

 

bubuko.com,布布扣 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

Microsoft-PetSop4.0(宠物商店)-数据库设计-Oracle

标签:des   返回顶部   style   blog   http   color   io   os   ar   

原文地址:http://www.cnblogs.com/ylbtech/p/4024069.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!