Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用“创建列名”;(“在hive 1.1.0中_Hive - Fatal编程技术网

使用“创建列名”;(“在hive 1.1.0中

使用“创建列名”;(“在hive 1.1.0中,hive,Hive,我尝试在配置单元中创建表,如下所示: create table IF NOT EXISTS department(deptid int, deptname(1) string, deptname(2) string) row format delimited fields terminated by ',' lines terminated by '\n' stored as textfile; 我得到的错误是 编译语句时出错:失败:ParseException行1:58无法识别列类型中“(“

我尝试在配置单元中创建表,如下所示:

create table IF NOT EXISTS department(deptid int, deptname(1) string, deptname(2) string)
row format delimited
fields terminated by ','
lines terminated by '\n'
stored as textfile;
我得到的错误是

编译语句时出错:失败:ParseException行1:58无法识别列类型中“(“1”)附近的输入

有没有其他方法可以创建带“(”

的列使用`(反勾选)来转义(圆括号))

它可以用于表名和字段名

尝试:

create table IF NOT EXISTS department(`deptid` int, `deptname(1)` string, `deptname(2)` string) row format delimited fields terminated by ',' lines terminated by '\n' stored as textfile;