The special point of Mysql

Source: Internet
Author: User

Internet companies generally choose MySQL, which is widely used in the Internet, but have been using Microsoft's stuff, including databases (MS SQL Server).

This is not the thought of switching databases so easy, but there are some details to note.

Data type DateTime type does not save milliseconds by default

If we use the DateTime field in the MSSQLServer, the number of milliseconds will be automatically stored in the database.

In MySQL, you can specify the precision of time when you can directly declare a column of the time type in the 5.6.4 + version.

eg. DATETIME (3) will add a millisecond to the time

Left Join is not the same as MSSQLServer

Reference

Three points you may need to know about MySQL left JOIN

SQL Data Types for Various DBs

DATETIME (Transact-SQL)

Timestamp with a millisecond precision:how to save them in MySQL

The special point of Mysql

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.