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. rPithon vs. rPython(转)

    Similar to rPython, the rPithon package (http://rpithon.r-forge.r-project.org) allows users to execu ...

  2. node--更新数据库问题

    昨天测试blog的comment功能,在新增comment相关的代码之后,重启应用,出现Cannot call method 'forEach' of undefined .反复核对代码,都没发现异常 ...

  3. 关于querySelectorAll的一个坑

    刚学JS的DOM操作时,就知道了匹配一堆元素,会获得NodeList和HTMLCollection这两个对象,不过当时并没有深入去研究两者的区别 因为无论是NodeList还是HTMLCollecti ...

  4. VR上天了!全景商业化落地了!——VR全景智慧城市

    几年前,VR创业公司SpaceVR就启动了旨在将宇航员视觉体验带给普通人的虚拟现实(VR)项目.SpaceVR计划将VR相机卫星送入太空,并将相机拍摄到的太空视频发送回地球,从而让VR用户身临其境地看 ...

  5. OpenGL教程(0)——介绍

    OpenGL介绍 OpenGL,全称Open Graphics Library,是一个用C语言写的图形API.通俗地说,OpenGL用来绘制2D/3D图形.目前OpenGL的运用十分广泛,有许多用Op ...

  6. 每天一个Linux命令—— crontab

    一.简介 1. Linux中有许多周期性执行的任务,这些任务由cron守护进程完成,因此cron这个系统服务是默认启动的. 2.Linux中调度任务分为两类:系统任务调度和用户任务调度,系统任务调度即 ...

  7. 关于PHP高并发抢购系统设计

    内容并发抢购系统注意事项高并发架构设计描述程序端核心代码实现订单流程mysql 端并发解决方案注意事项(1)高并发环境下,对于服务器cup.内存.网络宽带使用率会瞬间暴涨,需要注意对同服务器上其他应用 ...

  8. 如何同时完成多个ajax之后再执行某个方法 ? 使用$.when().done();

    jQuery中的$.when()方法比较复杂,这里不作全面讲解,只写一个同时完成多个ajax请求后执行操作的方法. 有时候我们需要等待多个ajax执行完以后,再执行某个操作. 写法如下: $.when ...

  9. 前端css要加的一些

    编码格式 @charset "utf-8"; body的外边距设置 margin:0; 标签设置 form,ul,ol,li设置为padding:0; ul,ol,li设置为lis ...

  10. 使用KeePass愉快的来管理你的密码

    不要老是使用同一个密码 这话说了好多次了,以前的CSDN被拖库,或者是好多xx照门,都告诉我们不宜使用用一个密码. 现在我各个网站的密码都不一样,而且复杂的我都记不住,例如,我的前Google账户密码 ...