In order to create a table with clob column type, the table has to be created with "ORGANIZE BY ROW";

DROP TABLE m_pi_error;

CREATE TABLE m_pi_error (
id INTEGER NOT NULL,
customer_id VARCHAR(15),
twitter_id VARCHAR(255),
err_msg clob(5M),
create_time date,
PRIMARY KEY(id)
) ORGANIZE BY ROW; DROP TABLE m_pi_note; CREATE TABLE m_pi_note (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1),
customer_id VARCHAR(15),
twitter_id VARCHAR(255),
personal_note clob(5M),
create_time date,
PRIMARY KEY(id)
)ORGANIZE BY ROW; DROP TABLE m_pi_values; CREATE TABLE m_pi_values (
CUSTOMER_ID varchar(30) DEFAULT NULL,
TWITTER_ID varchar(30) DEFAULT NULL,
word_count double DEFAULT NULL,
processed_language varchar(30) DEFAULT NULL,
big5_openness double DEFAULT NULL,
facet_adventurousness double DEFAULT NULL,
facet_artistic_interests double DEFAULT NULL,
facet_emotionality double DEFAULT NULL,
facet_imagination double DEFAULT NULL,
facet_intellect double DEFAULT NULL,
facet_liberalism double DEFAULT NULL,
big5_conscientiousness double DEFAULT NULL,
facet_achievement_striving double DEFAULT NULL,
facet_cautiousness double DEFAULT NULL,
facet_dutifulness double DEFAULT NULL,
facet_orderliness double DEFAULT NULL,
facet_self_discipline double DEFAULT NULL,
facet_self_efficacy double DEFAULT NULL,
big5_extraversion double DEFAULT NULL,
facet_activity_level double DEFAULT NULL,
facet_assertiveness double DEFAULT NULL,
facet_cheerfulness double DEFAULT NULL,
facet_excitement_seeking double DEFAULT NULL,
facet_friendliness double DEFAULT NULL,
facet_gregariousness double DEFAULT NULL,
big5_agreeableness double DEFAULT NULL,
facet_altruism double DEFAULT NULL,
facet_cooperation double DEFAULT NULL,
facet_modesty double DEFAULT NULL,
facet_morality double DEFAULT NULL,
facet_sympathy double DEFAULT NULL,
facet_trust double DEFAULT NULL,
big5_neuroticism double DEFAULT NULL,
facet_anger double DEFAULT NULL,
facet_anxiety double DEFAULT NULL,
facet_depression double DEFAULT NULL,
facet_immoderation double DEFAULT NULL,
facet_self_consciousness double DEFAULT NULL,
facet_vulnerability double DEFAULT NULL,
need_challenge double DEFAULT NULL,
need_closeness double DEFAULT NULL,
need_curiosity double DEFAULT NULL,
need_excitement double DEFAULT NULL,
need_harmony double DEFAULT NULL,
need_ideal double DEFAULT NULL,
need_liberty double DEFAULT NULL,
need_love double DEFAULT NULL,
need_practicality double DEFAULT NULL,
need_self_expression double DEFAULT NULL,
need_stability double DEFAULT NULL,
need_structure double DEFAULT NULL,
value_conservation double DEFAULT NULL,
value_hedonism double DEFAULT NULL,
value_openness_to_change double DEFAULT NULL,
value_self_enhancement double DEFAULT NULL,
value_self_transcendence double DEFAULT NULL,
behavior_sunday double DEFAULT NULL,
behavior_monday double DEFAULT NULL,
behavior_tuesday double DEFAULT NULL,
behavior_wednesday double DEFAULT NULL,
behavior_thursday double DEFAULT NULL,
behavior_friday double DEFAULT NULL,
behavior_saturday double DEFAULT NULL,
behavior_0000 double DEFAULT NULL,
behavior_0100 double DEFAULT NULL,
behavior_0200 double DEFAULT NULL,
behavior_0300 double DEFAULT NULL,
behavior_0400 double DEFAULT NULL,
behavior_0500 double DEFAULT NULL,
behavior_0600 double DEFAULT NULL,
behavior_0700 double DEFAULT NULL,
behavior_0800 double DEFAULT NULL,
behavior_0900 double DEFAULT NULL,
behavior_1000 double DEFAULT NULL,
behavior_1100 double DEFAULT NULL,
behavior_1200 double DEFAULT NULL,
behavior_1300 double DEFAULT NULL,
behavior_1400 double DEFAULT NULL,
behavior_1500 double DEFAULT NULL,
behavior_1600 double DEFAULT NULL,
behavior_1700 double DEFAULT NULL,
behavior_1800 double DEFAULT NULL,
behavior_1900 double DEFAULT NULL,
behavior_2000 double DEFAULT NULL,
behavior_2100 double DEFAULT NULL,
behavior_2200 double DEFAULT NULL,
behavior_2300 double DEFAULT NULL,
cp_automobile_ownership_cost double DEFAULT NULL,
cp_automobile_safety double DEFAULT NULL,
cp_clothes_quality double DEFAULT NULL,
cp_clothes_style double DEFAULT NULL,
cp_clothes_comfort double DEFAULT NULL,
cp_influence_brand_name double DEFAULT NULL,
cp_influence_utility double DEFAULT NULL,
cp_influence_online_ads double DEFAULT NULL,
cp_influence_social_media double DEFAULT NULL,
cp_influence_family_members double DEFAULT NULL,
cp_spur_of_moment double DEFAULT NULL,
cp_credit_card_payment double DEFAULT NULL,
cp_eat_out double DEFAULT NULL,
cp_gym_membership double DEFAULT NULL,
cp_outdoor double DEFAULT NULL,
cp_concerned_environment double DEFAULT NULL,
cp_start_business double DEFAULT NULL,
cp_movie_romance double DEFAULT NULL,
cp_movie_adventure double DEFAULT NULL,
cp_movie_horror double DEFAULT NULL,
cp_movie_musical double DEFAULT NULL,
cp_movie_historical double DEFAULT NULL,
cp_movie_science_fiction double DEFAULT NULL,
cp_movie_war double DEFAULT NULL,
cp_movie_drama double DEFAULT NULL,
cp_movie_action double DEFAULT NULL,
cp_movie_documentary double DEFAULT NULL,
cp_music_rap double DEFAULT NULL,
cp_music_country double DEFAULT NULL,
cp_music_r_b double DEFAULT NULL,
cp_music_hip_hop double DEFAULT NULL,
cp_music_live_event double DEFAULT NULL,
cp_music_playing double DEFAULT NULL,
cp_music_latin double DEFAULT NULL,
cp_music_rock double DEFAULT NULL,
cp_music_classical double DEFAULT NULL,
cp_read_frequency double DEFAULT NULL,
cp_books_entertainment_mag double DEFAULT NULL,
cp_books_non_fiction double DEFAULT NULL,
cp_books_financial_investing double DEFAULT NULL,
cp_books_autobiographies double DEFAULT NULL,
cp_volunteer double DEFAULT NULL
); DROP TABLE m_twitter_error;
CREATE TABLE m_twitter_error (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1),
customer_id varchar(15) DEFAULT NULL,
twitter_id varchar(255) DEFAULT NULL,
err_msg clob(5M),
create_time date DEFAULT NULL,
PRIMARY KEY (id)
) ORGANIZE BY ROW; DROP TABLE m_twitter_note;
CREATE TABLE m_twitter_note (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1),
customer_id varchar(15),
twitter_id varchar(255),
twitter_note clob(5M),
create_time date DEFAULT NULL,
PRIMARY KEY (id)
) ORGANIZE BY ROW; DROP TABLE m_twitter_user;
CREATE TABLE m_twitter_user (
  customer_id varchar(15) ,
  twitter_id varchar(255) ,
  create_time date
) ALTER TABLE DASH14081.m_pi_note ACTIVATE NOT LOGGED INITIALLY; ALTER TABLE DASH14081.m_twitter_note ACTIVATE NOT LOGGED INITIALLY;

 

dashDB - Creating a table with CLOB column type的更多相关文章

  1. SpringBoot+MyBatis中自动根据@Table注解和@Column注解生成增删改查逻辑

    习惯使用jpa操作对象的方式,现在用mybatis有点不习惯. 其实是懒得写SQL,增删改查那么简单的事情你帮我做了呗,mybatis:NO. 没办法,自己搞喽! 这里主要是实现了通过代码自动生成my ...

  2. sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) Cannot add a NOT NULL column with default value NULL [SQL: u'ALTER TABLE address_scopes ADD COLUMN ip_version INTEGER NOT NULL']

    root@hett-virtual-machine:~# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neu ...

  3. Creating a Table View Programmatically

    https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TableView_iPhone/Cre ...

  4. 修改TABLE中的Column的属性

    删除主键名 这个主键名并不是列名,而是主键约束的名字,如果当时设置主键约束时没有制定约束的名字 设置主键的语句:ALTER TABLE P add constraint pk PRIMARY KEY ...

  5. Mybatis使用-Error attempting to get column 'type' from result set. / '255' in column '4' is outside valid range for the datatype TINYINT.

    一.遇到的问题是这样的: [RemoteTestNG] detected TestNG version 6.9.10log4j: Parsing for [root] with value=[DEBU ...

  6. org.hibernate.HibernateException: Wrong column type

    这个问题一般出现在我们使用定长的字符串作为主键(其它字段也可能)的时候,如数据库中的ID为char(16).虽然很多资料上都说不推荐这样做,但实际上我们在做很多小case的时候自己为了方便也顾不得那么 ...

  7. SpringBoot+MyBatis中自动根据@Table注解和@Column注解生成ResultMap

    其实我一点都不想用mybatis,好多地方得自己写,比如这里. 使用mybatis要写大量的xml,烦的一批.最烦人的莫过于写各种resultmap,就是数据库字段和实体属性做映射.我认为这里应该是m ...

  8. 关于jq操作table下多个type=radio的input的选中

    假如有2个table: <table id="table1" border="0"> <tr> <td><input ...

  9. SQLAlchemy Table(表)类方式 - Table类和Column类

    Table 构造方法 Table(name, metadata[, *column_list][, **kwargs]) 参数说明: name 表名 metadata 元数据对象 column_lis ...

随机推荐

  1. scauoj 18025 小明的密码 数位DP

    18025 小明的密码 时间限制:4000MS  内存限制:65535K提交次数:0 通过次数:0 题型: 编程题   语言: G++;GCC Description 小明的密码由N(1<=N& ...

  2. qt添加资源文件方法

    File->new file->file and classes->Qt->qt resources->   add name   add->add prefix- ...

  3. 面试(2)-java-se-HashSet和TreeSet

    Set是java中一个不包含重复元素的collection.更正式地说,set 不包含满足 e1.equals(e2) 的元素对 e1 和 e2,并且最多包含一个 null 元素.正如其名称所暗示的, ...

  4. nginx-tomcat-memcached架构文档说明(转)

    800x600 Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 st1\:*{be ...

  5. 在Spring、Hibernate中使用Ehcache缓存(2)

    这里将介绍在Hibernate中使用查询缓存.一级缓存.二级缓存,整合Spring在HibernateTemplate中使用查询缓存.,这里是hibernate3,使用hibernate4类似,不过不 ...

  6. DATA VISUALIZATION – PART 2

    A Quick Overview of the ggplot2 Package in R While it will be important to focus on theory, I want t ...

  7. 关于vue生命周期中的同步异步的理解

    在vue官网中介绍生命周期的图如下: 主要测试代码如下: 主要是测试前四个生命周期beforeCreate,created,beforeMount,mounted,里面同步和异步的执行顺序,其它的类似 ...

  8. 简单bmp图片处理工具——python实现

    预备实现功能: 1.读取bmp文件 2.保存bmp文件 3.对bmp图片进行放大.缩小 4.对bmp图片进行灰度化 5.对bmp图片进行旋转 bmp文件格式非常简单,对于我这种初学者来说减少了不少不必 ...

  9. Elasticsearch文档查询

    简单数据集 到目前为止,已经了解了基本知识,现在我们尝试用更逼真的数据集,这儿已经准备好了一份虚构的JSON,关于客户银行账户信息的.每个文档的结构如下: { , , "firstname& ...

  10. jQuery 插件 的this 指向问题(实战)

    daterangepicker 是一个JavaScript组件,用来选择日期. 资源直接搜索 daterangepicker 即可,当然好看的样式可以基于Bootstrap. 官网:http://ww ...