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. .net操作压缩文件

    附件:SharpZipLib.zip public class UnZipClass//解压 { /// <summary> /// 解压功能(解压压缩文件到指定目录) /// </ ...

  2. RColorBrewer的使用

    RColorBrewer是一个R包,使用http://colorbrewer2.org/这个网站提供的颜色.我们画一个包括八个box的boxplot时,或者在x-y散点图上画六条线时,该怎样选择颜色呢 ...

  3. Java如何转换protobuf-net中的bcl.DateTime对象

    一.定义DateTime Message 参考文档:https://github.com/mgravell/protobuf-net/blob/master/src/Tools/bcl.proto m ...

  4. 记住 Python 变量类型的三种方式

    title: 记住变量类型的三种方式 date: 2017-06-11 15:25:03 tags: ['Python'] category: ['Python'] toc: true comment ...

  5. CSS浮动、绝对、相对定位

    浮动 float:属性{ float:none;    默认值,对象,不漂浮 float:left; 文本流向对象的右边 float:right; }; 清除浮动 clear:属性{ clear:no ...

  6. RedHat6.2 x86手动配置LNMP环境

    因为公司要求用RedHat配,顺便让我练习一下Linux里面的操作什么的. 折腾来折腾去终于搞好了,其实也没那么难嘛.但是也要记录一下. 首先,是在服务器里面用VMware搭建的RedHat6.2 x ...

  7. 快来领取一场专门讲解UTF-8与UTF-16编码算法的GitChat活动的免费名额

    微信扫一扫,可打开该GitChat活动页面 字符编码是计算机世界里最基础.最重要.最令人困惑的一个主题之一.不过,在计算机教材中却往往浮光掠影般地草草带过,甚至连一本专门进行深入介绍的专著都找不到(对 ...

  8. 编写原生JS的insertAfter函数

    DOM里有insertBefore函数,但没有insertAfter函数,所以自己编写一个该函数: function insertAfter(newElement, targetElement){ v ...

  9. hadoop伪分布式集群搭建与安装(ubuntu系统)

    1:Vmware虚拟软件里面安装好Ubuntu操作系统之后使用ifconfig命令查看一下ip; 2:使用Xsheel软件远程链接自己的虚拟机,方便操作.输入自己ubuntu操作系统的账号密码之后就链 ...

  10. Mac远程连接windows报错“证书或相关链无效,是否仍要连接到此计算机”的处理办法。

    这个主要是因为策略组设置的问题.详细的设置方法如下: 本地计算机策略>计算机配置>管理模板>windows组件>远程桌面服务>远程桌面会话主机>安全>远程(R ...