Home > Database > Mysql Tutorial > How to differentiate date and time parts using arbitrary characters at spaces in MySQL TIMESTAMP?

How to differentiate date and time parts using arbitrary characters at spaces in MySQL TIMESTAMP?

王林
Release: 2023-09-01 22:29:08
forward
937 people have browsed it

如何在 MySQL TIMESTAMP 中的空格处使用任意字符来区分日期和时间部分?

We can use the only character "T" (uppercase only) for the space between the date and time parts. This can be clarified with the help of the following examples -

mysql> Select TIMESTAMP('2017-10-20T06:10:36');
+----------------------------------+
| TIMESTAMP('2017-10-20T06:10:36') |
+----------------------------------+
| 2017-10-20 06:10:36              |
+----------------------------------+
1 row in set (0.00 sec)
Copy after login

The above is the detailed content of How to differentiate date and time parts using arbitrary characters at spaces in MySQL TIMESTAMP?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template