当前位置:网站首页>NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
2022-06-27 06:35:00 【Ah Yi's preserved vegetables】
Source of problem :
The recent use hive Data warehouse tools , The installation and use are normal , start-up hive It's also very successful , Also by command show databases; Inquire about hive All database information , But when executing create table ( Whether it is an internal table or an external partition table ) I've been reporting mistakes all the time , Many online tutorials are useless , Finally, find the reason by yourself , I wish to record .
resolvent :
First, the first reason , The most likely mistake is punctuation . The table creation statement I input locally is shown in the following figure :

Look at my error log output , Here's the picture :

You can see that the bottom line indicates that the error location is on the 3 Xing di 0 Column , Go back to the command line and find that the position is a single quotation mark , After consulting a large number of materials but still useless, I came to a great understanding ,sql Statements should use emphasis marks ` , Not single quotes ' . You can see the comparison of the following two screenshots ( The first is a single quotation mark , The result is wrong ; The second is the emphasis , Results successful ).


The second error is caused by improper variable names , For example, when your variable name is time when , The system still reports 3 initial error , The same goes for the prompt , At this time, you only need to avoid the conflict between your variable name and the system keyword .
边栏推荐
猜你喜欢

MPC control of aircraft wingtip acceleration and control surface

汇编语言-王爽 第8章 数据处理的两个基本问题-笔记

JVM common instructions

JVM class loading mechanism

Run opcua protocol demo on raspberry pie 4B to access kubeedge

Fast implementation of thread mesh networking

机 器 学 习

JVM garbage collection mechanism

主动学习(active learning)

观测电机转速转矩
随机推荐
JVM类加载机制
TiDB 中的视图功能
Unrecognized VM option ‘‘
Scala函数柯里化(Currying)
JVM整体结构解析
Multithreading basic part part 1
AHB2APB桥接器设计(2)——同步桥设计的介绍
Fast implementation of thread mesh networking
研究生数学建模竞赛-无人机在抢险救灾中的优化应用
爬虫学习5---反反爬之识别图片验证码(ddddocr和pytesseract实测效果)
观测电机转速转矩
matlab GUI界面仿真直流电机和交流电机转速仿真
Multithreading basic Part3
Keep 2 decimal places after multiplying SQLSEVER fields
Configuration of vscode korofileheader
Yaml file encryption
Currying Scala functions
427-二叉树(617.合并二叉树、700.二叉搜索树中的搜索、98. 验证二叉搜索树、530.二叉搜索树的最小绝对差)
Altium Designer 19 器件丝印标号位置批量统一摆放
EasyExcel:读取Excel数据到List集合中