当前位置:网站首页>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 .
边栏推荐
- IDEA一键生成Log日志
- 机 器 学 习
- Information System Project Manager - Chapter VII project cost management
- 310. minimum height tree
- One year's experience of technical personnel in Entrepreneurship
- 汇编语言-王爽 第8章 数据处理的两个基本问题-笔记
- [QT notes] simple understanding of QT meta object system
- Us camera cloud service scheme: designed for lightweight video production scenes
- [getting started] regular expression Basics
- AHB2APB桥接器设计(2)——同步桥设计的介绍
猜你喜欢

Dev++ environment setting C language keyword display color

线程间等待与唤醒机制、单例模式、阻塞队列、定时器

winow10安装Nexus nexus-3.20.1-01

JVM对象组成和存储

Crawler learning 5--- anti crawling identification picture verification code (ddddocr and pyteseract measured effect)

信息系统项目管理师---第七章 项目成本管理

The risk of multithreading -- thread safety

thrift

Caldera installation and simple use

Program ape learning Tiktok short video production
随机推荐
matlab GUI界面仿真直流电机和交流电机转速仿真
IDEA一键生成Log日志
Block level elements & inline elements
[QT] use structure data to generate read / write configuration file code
JVM garbage collection mechanism
论文阅读技巧
HTAP Quick Start Guide
Maxcompute SQL 的查询结果条数受限1W
LeetCode 0086. Separate linked list
Change the status to the corresponding text during MySQL query
TiDB 中的SQL 基本操作
When there are multiple El select, the selected value is filtered by El select, and the last selected value is filtered by the second El select
机 器 学 习
Multithreading basic part part 1
What's new in redis4.0 - active memory defragmentation
The risk of multithreading -- thread safety
Unrecognized VM option ‘‘
Fractional Order PID control
TiDB与 MySQL 兼容性对比
线程间等待与唤醒机制、单例模式、阻塞队列、定时器