MySQL and PostgreSQL database learning notes

Source: Internet
Author: User

MySQL cannot support the data version from the most basic data engine to the process structure. Causes its function to block "concurrency", does not support the most basic transaction, InnoDB does not reach the basic transaction requirements, any write data, causes the entire table to lock. At best, a toy, or a key->value data store, is no different than a database (RDBMS) MySQL cannot support any OLTP or OLAP. Can only be used as the basic data store for CRUD, published to Static. Currently, all MySQL applications can only reach this level. Oracle, the industry benchmark in all aspects of the database, has been imitated and never surpassed. But the price is expensive.

A, MySQL data type

Character: Varchar,char,text

Numbers: Smallint,int,bigint

Date: Date,datetime,timestamp

B, paging query

Limit queries the middle data in the database; offset offsets

http://www.csdn.net/article/1970-01-01/308040

Pg does not have a variety of MySQL pits

Date functions in MySQL

Select 1 Day);

Date function in PG

Select     ' 2016-04-12 ' - integer ' 1 ';

MySQL and PostgreSQL database learning notes

Related Article

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.