编写操作 DB2 数据的 Web 应用程序(第 1 部分)
2009-11-06 00:00:00 来源:WEB开发网CREATE TABLE "machinename.TSTCASES"("PROD_ID" CHAR(10) NOT NULL, "PRODUCT" CHAR(30)
NOT NULL,"PLATFORM" CHAR(20) NOT NULL, "NUM_C_AUTO_TCS" INTEGER NOT NULL ,
"NUM_JAVA_AUTO_TCS" INTEGER NOT NULL , "NUM_C64_AUTO_TCS" INTEGER NOT NULL,
"NUM_C_MANUAL_TCS" INTEGER NOT NULL , "NUM_JAVA_MANUAL_TCS" INTEGER NOT NULL ,
"NUM_C64_MANUAL_TCS" INTEGER NOT NULL,
"NUM_JSUI_TCS" INTEGER NOT NULL , "NUM_OLT_TCS" INTEGER NOT NULL ,
"NUM_LOGBR_TCS" INTEGER NOT NULL , "NUM_OTHER_TCS" INTEGER NOT NULL) ;
ALTER TABLE "machinename.TSTCASES" ADD PRIMARY KEY ("PROD_ID", "PLATFORM");
TSTRSLTS 表是由以下 DB2 命令创建的:
CREATE TABLE "machinename"."TSTRSLTS" ("DRIVER" CHAR(15) NOT NULL, "PLATFORM"
CHAR(20) NOT NULL, "PROD_ID" CHAR(10) NOT NULL,
"TEST_MACHINE" CHAR(15) NOT NULL, "JDK_LEVEL" CHAR(15) NOT NULL, "COMPILER_LEVEL"
CHAR(15) NOT NULL, "OS_LEVEL" CHAR(15) NOT NULL, "NUM_TCS" INTEGER NOT NULL,
"NUM_PASSED" INTEGER NOT NULL, "DATE_TIME" TIMESTAMP NOT NULL, "C_AUTO_PASSED"
INTEGER NOT NULL WITH DEFAULT 0, "C_AUTO_FAILED" INTEGER NOT NULL WITH DEFAULT 0,
"JAVA_AUTO_PASSED" INTEGER NOT NULL WITH DEFAULT 0, "JAVA_AUTO_FAILED"
INTEGER NOT NULL WITH DEFAULT 0, "C64_AUTO_PASSED" INTEGER NOT NULL
WITH DEFAULT 0, "C64_AUTO_FAILED" INTEGER NOT NULL WITH DEFAULT 0,
"C_MANUAL_PASSED" INTEGER NOT NULL WITH DEFAULT 0, "C_MANUAL_FAILED" INTEGER NOT NULL
WITH DEFAULT 0, "JAVA_MANUAL_PASSED" INTEGER NOT NULL WITH DEFAULT 0,
"JAVA_MANUAL_FAILED" INTEGER NOT NULL WITH DEFAULT 0, "C64_MANUAL_PASSED"
INTEGER NOT NULL WITH DEFAULT 0, "C64_MANUAL_FAILED" INTEGER NOT NULL WITH DEFAULT
0, "JSUI_PASSED" INTEGER NOT NULL WITH DEFAULT 0, "JSUI_FAILED" INTEGER
NOT NULL WITH DEFAULT 0, "OLT_PASSED" INTEGER NOT NULL WITH DEFAULT 0,
"OLT_FAILED" INTEGER NOT NULL WITH DEFAULT 0, "LOGBR_PASSED" INTEGER
NOT NULL WITH DEFAULT 0, "LOGBR_FAILED" INTEGER NOT NULL WITH DEFAULT 0,
"OTHER_PASSED" INTEGER NOT NULL WITH DEFAULT 0, "OTHER_FAILED" INTEGER
NOT NULL WITH DEFAULT 0, "LATEST" CHAR(1) NOT NULL WITH DEFAULT 'N');
ALTER TABLE "machinename"."TSTRSLTS" ADD CONSTRAINT PRIMARY
KEY ("DRIVER", "PLATFORM", "PROD_ID", "JDK_LEVEL", "COMPILER_LEVEL", "OS_LEVEL);
- ››db2 对float类型取char后显示科学计数法
- ››DB2中出现SQL1032N错误现象时的解决办法
- ››DB2 锁升级示例
- ››db2诊断系列之---定位锁等待问题
- ››编写Linux定时处理程序
- ››db2 命令选项解释
- ››编写Linux系统下Daemon程序的方法步骤
- ››操作系统资源不足两种方案解决办法
- ››DB2 最佳实践: 使用 DB2 pureXML 管理 XML 数据的...
- ››DB2 9.5 SQL Procedure Developer 认证考试 735 准...
- ››DB2 9.5 SQL Procedure Developer 认证考试 735 准...
- ››DB2 9.5 SQL Procedure Developer 认证考试 735 准...
更多精彩
赞助商链接