tencent cloud


Phoenix Client Tutorial

Last updated: 2020-10-10 16:48:21

The Phoenix supports SQL queries. The following are some common operations:

  • Create a table
    0: jdbc:phoenix:> CREATE TABLE IF NOT EXISTS TEST (
      host char(50) not null,
      txn_count bigint
  • Insert data
    0: jdbc:phoenix:>UPSERT INTO TEST(host,txn_count) VALUES('',1);
    0: jdbc:phoenix:>UPSERT INTO TEST(host,txn_count) VALUES('',2);
  • Query data
    0: jdbc:phoenix:>SELECT * FROM TEST;
  • Delete a data table
    0: jdbc:phoenix:>DROP TABLE IF EXISTS TEST;

For more operations and instructions, please see the community documentation.

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support