forked from oltpbenchmark/oltpbench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ddl for timesten ycsb workload oltpbenchmark#131
- Loading branch information
1 parent
73d47a7
commit 97324ac
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/com/oltpbenchmark/benchmarks/ycsb/ycsb-timesten-ddl.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- YCSB DDL for Timesten | ||
-- FIELDS ARE FIXED TO 100 Bytes | ||
|
||
BEGIN EXECUTE immediate 'DROP TABLE USERTABLE'; EXCEPTION WHEN others THEN IF SQLCODE != -942 THEN RAISE; END IF; END;; | ||
|
||
CREATE TABLE USERTABLE( | ||
YCSB_KEY INT NOT NULL, | ||
FIELD1 VARCHAR2(100), FIELD2 VARCHAR2(100), | ||
FIELD3 VARCHAR2(100), FIELD4 VARCHAR2(100), | ||
FIELD5 VARCHAR2(100), FIELD6 VARCHAR2(100), | ||
FIELD7 VARCHAR2(100), FIELD8 VARCHAR2(100), | ||
FIELD9 VARCHAR2(100), FIELD10 VARCHAR2(100), | ||
PRIMARY KEY (YCSB_KEY) | ||
); |