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. Swift 入门之简单语法(二)

    可选项判断 由于可选项的内容可能为 nil,而一旦为 nil 则不允许参与计算 因此使用中,经常需要判断可选项的内容是否为 nil 单个可选项判断 let url = NSURL(string: &q ...

  2. R语言-混合型数据聚类

    利用聚类分析,我们可以很容易地看清数据集中样本的分布情况.以往介绍聚类分析的文章中通常只介绍如何处理连续型变量,这些文字并没有过多地介绍如何处理混合型数据(如同时包含连续型变量.名义型变量和顺序型变量 ...

  3. Java 8 新特性1-函数式接口

    Java 8 新特性1-函数式接口 (原) Lambda表达式基本结构: (param1,param2,param3) -> {代码块} 例1: package com.demo.jdk8; i ...

  4. cookie创建,删除

    Cookie 历来指就着牛奶一起吃的点心.然而,在因特网内,“Cookie”这个字有了完全不同的意思.那么“Cookie”到底是什么呢?“Cookie”是小量信息,由网络服务器发送出来以存储在网络浏览 ...

  5. Jmeter Boss系统login

    之前说,想学习并且掌握自动化测试,但是,折腾过来折腾过去,逐渐意识到了,app自动化测试分为UI层面还有接口测试.(其实,功能测试就是UI+接口测试的集合,当然,只是我自己这么认为,hhhhhhh) ...

  6. 关于php内存释放问题 内存溢出问题(二)

    今天抽了一上午时间,来看了看之前解决过内存问题的代码,相对来说,我对自己代码的优化程序非常不满意,一次性导入四万条数据就使代码变得如此繁琐,我想这不是根本的解决方法.通过网上检索,对问题有进一步的分析 ...

  7. canvas动画——粒子系统(1)

    这个动画在很早之前就见过,当时就没迷住了.最近在学canavs动画,动手实现了一下.代码在这里.展示效果在这里. 这属于粒子系统的一种,粒子系统就是需要管理一堆粒子嘛,动画实现的关键在于,遍历这些粒子 ...

  8. sqlmap用户手册 [详细]

    当给sqlmap这么一个url的时候,它会: 1.判断可注入的参数 2.判断可以用那种SQL注入技术来注入 3.识别出哪种数据库 4.根据用户选择,读取哪些数据 sqlmap支持五种不同的注入模式: ...

  9. oracle日志挖掘

    oracle日志挖掘是一种十分强大的数据恢复技术,只要你保障你的归档日志和重做日志是完整的,那么就可以将你的数据恢复到任何时刻.简单叙述一下日志挖掘的基本原理,然后进行一个简单的小实验. 日志挖掘时基 ...

  10. 关于oracle数据库备份还原-impdp,expdp

    初始化: -- 创建表空间 CREATE TABLESPACE 表空间名 DATAFILE '文件名.dat' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE UNL ...