Discover psql drop database command line, include the articles, news, trends, analysis and practical advice about psql drop database command line on alibabacloud.com
Psql powerful, skills how to use only follow-up slowly supplemented, see a tool first see how to use Help$ psql #连接到数据库服务器, in which you can enter the appropriate SQL statement or PSQL command, psql command starts with \$ \l #列出所有的数据库$ \d #查看表的结构$
Common Psql commands
Source: http://www.cnblogs.com/happyhotty/articles/1920455.html
\ D[
Table]
List tables in the database or (if declared) tables
TableIf the table name is declared with a wildcard ("*"), it lists the column/field
Enter PostgreSQL1 Enter the database default installation will create Postgres users, using Postgres user, Psql command directly into the database: Bash code $ su postgres//psql user $ Psql//default direct access to $ psql-u posrgres-d dbname//Use
Since MySQL was acquired by Oracle, PostgreSQL has become the first choice for open-source relational databases.This article describes the installation and basic usage of PostgreSQL for first-time users to get started. The following is based on the
There are a variety of Installation manuals for each platform to be installed. You can search for details in google. Here is the Installation Method On debian, ubuntu class: aptitudeinstallpostgresql # This is the database aptitudeinstallpgadmin3 #
1. sqlite3: a command line interface of the SQLite Database
Address: http://www.sqlite.org/sqlite.html
The SQLite library contains a command line named sqlite3, which allows you to manually enter and execute SQL commands for the SQLite database.
The SQLite library contains a command line named sqlite3, which allows you to manually enter and execute SQL commands for the SQLite database. This document provides a brief description of sqlite3.
Start
To start the sqlite3 program, you only need
ArticleDirectory
The SQLite library contains a command line named sqlite3, which allows you to manually enter and execute SQL commands for the SQLite database. This document provides a brief description of sqlite3.
The SQLite library
0, password file:
Before giving other PostgreSQL client commands, we need to introduce the password file in PostgreSQL. The file is explained here in advance because we are applying the file in a lot of the following sample code to ensure that our
1. InstallationThe latest version is automatically installed using the following command, 9.5sudo apt-get install PostgreSQLWhen the installation is complete, the default is:(1) Create a Linux user named "Postgres"(2) Create a default database
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.