Home  >  Article  >  Database  >  How to query date in mysql

How to query date in mysql

王林
王林Original
2020-10-16 11:23:517526browse

Mysql query date method: first execute the [mysql -u root -p] command; then enter the password according to the prompts; finally execute the [select now();] statement to view the date.

How to query date in mysql

Enter the mysql -u root -p command to log in to mysql

(Recommended tutorial: mysql video tutorial )

How to query date in mysql

Prompt for password, enter the correct password, enter the mysql command line

How to query date in mysql

Enter select now(); Command, press Enter, return to mysql system time

How to query date in mysql

Related recommendations:mysql tutorial

The above is the detailed content of How to query date in mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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