Home > Database > Mysql Tutorial > body text

mysql 的基础知识_MySQL

WBOY
Release: 2016-06-01 13:17:42
Original
1071 people have browsed it

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

最基本的mysql操作

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

select version(),current_date,current_time,current_timestamp;

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

2、查看数据库 show databases;

image

source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!