To tell the truth, my LAMP site, in fact, can not forget this elephant. MySQL is a brisk dolphin, but lacks many of the characteristics of modern relational databases, such as referential integrity, views, triggers, and so on. So if you need to
Vi. Pattern Matching:
PostgreSQL provides three ways to implement pattern matching: SQL Like operator, more recent similar to operator, and posix-style regular expression.1. Like:
Copy Code code as follows:
string like pattern
A new feature of PostgreSQL 9.2 is the range type range types, by which you can easily guess the purpose of the type, which allows you to define a range of values for a column of data.
This simple feature lets us not define two fields to describe
Export table
Pg_dump-h localhost-u postgres (user name) database name (with user name by default)-T table (table name) > Dump.sql
Import Table
Psql-f Dump.sql
Example of a complete import export table
1, check the original database
-bash-3.2$
2. Prompt after selecting the language:Error:there have been an error.Please put the SELinux in permissive mode and then run installer again. SELinux canBe put in enforcing mode again after installation.Press [Enter] to continue:Solution:Need to
1.SHOW Datestyle;Datestyle-----------ISO, MDY(1 row)INSERT into Container VALUES (' 13/01/2010 ');Error:date/time field value out of range: "13/01/2010"Hint:perhaps you need a different "datestyle" setting.SET Datestyle = "ISO, DMY";SETINSERT into
Download installationExecute the following statement at the command line:This command will help you to download the following PostgreSQL components:` | `-- | --postgresql-client-10 | Client libraries and client binariespostgresql-10 | Core Database
The configuration parameters for the PostgreSQL database are in the postgresql.conf file, which is the database's data directory ($PGDATA). Some of these parameters are directly modified to take effect, some need to restart the database to take
Why is PostgreSQL?Before the advent of. NET core, the most common development component on the Microsoft platform was the. NET Framework + SQL Server, but now that the. NET core has finally made cross-platform deployment a reality, will this model
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 SQL input consists of a series of commands . An order consists of a series of tokens , with a semicolon (";") End. The termination of the input stream also ends a command. Which tokens are valid depends on the syntax of the particular command.A
In the relational database area, PostgreSQL is a very popular open source database software. Since its release in 1996, it has accumulated nearly 20 years of practical experience, both in PostgreSQL itself and in community ecology. Not only small
Reprinted from http://zhenghaoju700.blog.163.com/blog/static/13585951820116782843994/Install a PostgreSQL first (see Supplemental knowledge)Compare Oracle PL/SQLDbms_output.put_line ("This is a log") in PL/SQL; Simple commissioning is possibleOf
Pgpool Overview
The Pgpool-ii is a middleware located between the PostgreSQL server and the PostgreSQL database client, which provides the following features: Connection pooling, replication, load balancing, limiting over-limit connections,
The time can be added and reduced directly in PostgreSQL: Query System Current Time: Select Now ();OrSelect Current_timestamp; SELECT now ():: Timestamp + ' 1 year '; --Current time plus 1 yearsSELECT now ():: Timestamp + ' 1 month '; --Current
MySQL is so widely used that I have to migrate some applications from MySQL to PostgreSQL, many open source software is mysql as a database standard, and MySQL as the basis of the abstract, but the use of the process, found that MySQL has a lot of
?? ? ? ? ? ? ? ?Reference: http://book.51cto.com/art/201201/313175.htmSystem ArchitecturePostgreSQL database consists of the connection management system (System Controller), the compiled execution system, the storage management system, the
New machine error after deploymentApp 12595 Stderr:pg::connectionbad (FATAL: Peer authentication failed for user "Dbuser" app 12595 stderr:):Surf the internet for a bit, many of the posts are said to modify/etc/postgresql/9.4/main/pg_hba.conf this
PostgreSQL replication Series translated from PostgreSQL replication bookIn this chapter, you'll look at different replication concepts, and you'll see which types of replication are most appropriate for which practical scenarios. At the end of this
2.3 Understanding consistency and data lossIt is not possible to mine PostgreSQL transaction logs without regard to consistency. In the first part of this chapter, we have largely explained the basic idea of the transaction log. You already know
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.