Tags: view server shel record switch align PIP taskI. Description of the orderPsql is the interactive terminal of PostgreSQL, which is equivalent to Sqlplus in Oracle. When the command is executed to connect to the database, the default user and database are Postgressecond, the command parameters-C command: Specifies that psql executes an SQL command (enclosed in double quotation marks) and exits after execution.-D database name: the names of the data
Label:1. Switch to Postgres user;2. Enter: Psql, enter the client psql of PostgreSQL;3.\l View all the current databases;4.psql Database1 connected to database1 this database;5. \dt View all the tables of the currently connected database (DATABASE1);6. \d Table1 View the table structure of table table1;Also: Modify a user's password in ubuntu:1. Switch to the roo
use Psql.Pg_restore and archive file formats use the Rebuild database together.1. Backup First:Pg_dump-u postgres-f t-f/vendemo.tar Vendemo back up with more than 800 K. Recovery:Pg_restore-u postgres-d Bk01/vendemo.tar2. Backup First:Pg_dump-u postgres-f c-f/vendemo.tar Vendemo back up with more than 300 K. Recovery:Pg_restore-u postgres-d Bk01/vendemo.tar three, compress backup and restore: Process Big Data library: 1. Use compressed dumps. Use your familiar compression program, such as
Often use PSQL query data, now summarize a few common command parameters, for future reference
-H Database Address
-U Database user name
-T do not print fields and other information
-C Executed SQL statement
-s single step execution, is the execution of the time repeatedly press ENTER
Case:/opt/pg93/bin/psql-h ${tdata_host}-u ${tdata_user}-t log_analysis-c "${checksql}"Reference: http://
\?-------------------------------------General\copyright display the use and release license terms for PostgreSQL\g [file] or; Execute the query (and write the results to a file or | pipeline)\gset [PREFIX] executes the query and saves the result to the PSQL variable\h [name] SQL command syntax description, with * Show all commands syntax description\q Exit Psql\watch [SEC] Executes a query every SEC second
Tags: database SQ server use PSQL Data DTS Service System1. Connect to the server:Psql-h 192.168.1.88-u username-d DatabaseName2. Switch the database:\c dbname3. List all databases:\l4. List all current database tables:\d5. List all the fields of the table:\d TableName6. List the basic conditions of the table:\d+ TableName7. Exit\q8. View Help\?9. View the index:\di10. View the system table:\dts11. View the User:\du or \DG12. View the View:\DV or \d+
1. View partition size
Select segment_name, partition_name, Bytes/1024/1024 used_mbFrom dba_segmentsWhere segment_name in ('tableone ','Tabletwo ')
2. Compare the data differences between the two tables
(Select * From Table1)
Minus
(Select
Error during the OPENERP installation process:Psql:could not connect to server:no such file or directoryis the server running locally and acceptingConnections on Unix domain socket "/var/run/postgresql/.s.pgsql.5432"?Depending on the hint, there
PostgreSQL tutorial (18): client commands (2), postgresql tutorial
VII. pg_dump:
Pg_dump is a tool used to back up PostgreSQL databases. It can even perform a full and consistent backup when the database is being used concurrently without blocking access to the database by other users. The dump format generated by this tool can be divided into two types: script and archive file. The script format is a plain
need to start psql to experiment with the examples in this tutorial. You can activate it for the mydb database with the following command: Psql MyDBIf you do not provide a database name, then its default value is your user account name. You should have known this way in the previous section of using createdb .In psql
Tags: method su-delete Table not back operating system tutorial step add 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 Debian operating system, and the rest of the operating system is not in the balance, but most of the content should apply. Installat
Preach Wisdom Blog Video tutorial Download summary |java video tutorial |net video tutorial |php video tutorial | Web video Tutorial
Preach Wisdom Blog Video tutorial Download summary |java video
PSQL commands.L: Lists all databases.c [database_name]: Connect to other databases.D: Lists all tables for the current database.d [table_name]: Lists the structure of a table.Du: Lists all users.E: Open the text editor.Conninfo: Lists the current database and connection information.V. Operation of the databaseThe basic database operation is to use the general SQL language.Create a new tableCREATE TABLE user_tbl (name VARCHAR (), signup_date date);Ins
PostgreSQL is the first choice for open source relational databases, because the MySQL database is now being acquired by Oracle, so let's introduce a tutorial on compiling the PostgreSQL database in CentOS.
ReadLine is an open source Cross-platform library that provides interactive text editing capabilities. PostgreSQL needs ReadLine support.Wget-c https://ftp.postgresql.org/pub/source/v9.3.5/postgresql-9.3.5.tar.gz[Root@rootop postgresql-9.3.5]# yu
Link to the PHP object-oriented programming getting started tutorial, and the OOP Getting Started Tutorial. Link to the PHP object-oriented programming getting started tutorial, the OOP Getting Started Tutorial PHP official learning oop: php. netmanuzhoop5.intro. php the following link Source: blog.snsgou.compost-41.ht
Seven, Pg_dump:
Pg_dump is a tool for backing up the PostgreSQL database. It can even make a full, consistent backup when the database is being used concurrently, without blocking access to the database by other users. The dump format generated by the tool can be divided into two types, scripts, and archives. The script format is a plain text format that contains a number of SQL commands that can be used to rebuild the database and restore it to the state when the script was generated, which ne
Tutorial
FreeBSD Install PostgreSQL Novice Tutorial
Author: Heiyeluren
QQ Group: 5415735 (FreeBSD installation and maintenance Group)
Date: 2004/9/17
Special thanks to QQ group Friend Nam, this article under his patient guidance to produce
PostgreSQL is an open source database management system, PostgreSQL is a very complex object-relational database management system (ORDBMS), but also the most powerful
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.