ERROR 601 (42P00): Syntax error. Encountered

Ads

 
 

Share on Google+Share on Google+

Java Coder
ERROR 601 (42P00): Syntax error. Encountered
1 Answer(s)      a year ago
Posted in : Java Beginners

Hi,

In HBase program I am executing the insert into query, but it is giving following error:

ERROR 601 (42P00): Syntax error. Encountered "insert" at line 1, column 1.

How to solve this?

Thanks

Ads
View Answers

May 8, 2016 at 8:56 AM


Hi,

Apache phoenix does not accept the 'insert' command, you have to use the 'upsert' command.

Here is one example query of inserting data into phoenix table:

upsert into users (ID,USER_NAME) values(1,'DEEPAK');

Thanks


Ads









Related Tutorials/Questions & Answers: