无法在类似mysql的Qubole中创建表
我想在Qubole中创建一个外部表,类似于在Mysql中创建的表。mysql中创建表的查询为:无法在类似mysql的Qubole中创建表,mysql,hive,qubole,Mysql,Hive,Qubole,我想在Qubole中创建一个外部表,类似于在Mysql中创建的表。mysql中创建表的查询为: CREATE TABLE `mytable` ( `id` varchar(50) NOT NULL, `v_count` int(11) DEFAULT NULL, `l_visited` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `f_visited` timestamp NOT NU
CREATE TABLE `mytable` (
`id` varchar(50) NOT NULL,
`v_count` int(11) DEFAULT NULL,
`l_visited` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`f_visited` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
有人能帮我在hive中编写类似的查询吗。请尝试以下方法:
CREATE TABLE page_view(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
STORED AS SEQUENCEFILE;
请点击以下链接:
嘿,与其直接询问解决方案,不如先问一些简单的问题,然后在遇到问题时寻求帮助。如何在配置单元中使用“not null”和“default null”