All kinds of database records

Source: Internet
Author: User
All kinds of database records

Elasticsearch Database:

First, ES introduction

Second, ES common operation

ES database for test environment: 172.16.50.24:9200/_plugin/head/(log in to the database host to see if head and SQL plug-ins are installed if you cannot log in)

Create a new index

Create a new Index table

Greenplum Database:

First, GP introduction
Second, GP common commands

Login database: psql-d chinacloud (database name)-H 172.16.50.22 (host address)-P 5432 (port)-U postgres (username)

View Database: \l

Switch database: \c database name; (equivalent to use databases)

View the table for the current database: \dt

View table structure: \d table name; (equivalent to the SQL DESC tablename)

Add a table: CREATE TABLE TableName (id,srting);

Delete a table: drop table tablename;

All kinds of database records

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.