Home  >  Article  >  Database  >  mysql 的基础知识_MySQL

mysql 的基础知识_MySQL

WBOY
WBOYOriginal
2016-06-01 13:17:421068browse

这边博客,纯为了摘录 mysql 常用的一些操作,如果你已经懂了,可以忽略,谢谢。

最基本的mysql操作

1、查询mysql 的版本和当前时间信息

select version(),current_date,current_time,current_timestamp;

image 执行一条新的命令 将一个多行命令中,等待下一行的输入。 等待下一行的输入,其以 ’ 结束 等待下一行的输入,其以 ”结束 等待下一行的输入,其以 ` 结束 等待下一行的输入,其以/*结束(注释)

2、查看数据库 show databases;

image

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