少年阿賓

          那些青春的歲月

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks
          create index aid on abin(id)
          create unique index usid on abin(sid)
          //組合索引
          create unique index allindex on abin(id,name,sid)
          http://blog.csdn.net/java05/article/details/5579183

          創建主鍵:
          create table abin1(
          id number(10,0) not null check(id>0),
          name nvarchar2(100),
          constraint abin1id primary key(id)
          );

          創建主鍵和外鍵
          create table abin2(
          id number(10,0) not null check(id>0),
          sid number(10,0) not null,
          name nvarchar2(100),
          constraint abin2id primary key(id),
          constraint abin2sid foreign key(sid) references abin1(id)
          )

          posted on 2012-09-04 23:11 abin 閱讀(417) 評論(0)  編輯  收藏 所屬分類: DatabaseIndex
          主站蜘蛛池模板: 陇南市| 东乡族自治县| 简阳市| 汉沽区| 竹北市| 云龙县| 庆云县| 赣州市| 丽江市| 乐亭县| 山东省| 开远市| 仁怀市| 马边| 福海县| 定南县| 嵊州市| 西昌市| 镇雄县| 景洪市| 镇安县| 乐业县| 兴宁市| 监利县| 利津县| 苏尼特左旗| 临安市| 商洛市| 黔西县| 赣榆县| 和田市| 尉氏县| 丰台区| 铜鼓县| 威信县| 宁陕县| 鄂伦春自治旗| 麟游县| 二手房| 舒兰市| 台安县|