MySQL数据库特性---基本操作

一、特性 

1.通过c/s模式,支持多个客户同时访问数据库服务器。

2.对数据库的增删改查被抽象为SQL语言,隐藏底层复杂性。

3.对数据的完整性,并发性,安全性有很好的处ji

二、基本操作

1. 创建库(名字为test)

creat database test;

2.切换库

use test;

3.查看库里的表格

show databases;

4.创建表(表名student)

create table student(id int primary key, name varchar(10));

5.向表中加入数据

insert into student(name, id) values('李四', 2);

6.查询

select id,name from student;
// selet id from student;

 

MySQL数据库特性---基本操作_第1张图片

 

7.更新 

updata student set name='李四' where id=1;

 8.删除

delete from student where id=1;

MySQL数据库特性---基本操作_第2张图片

 9.运行数据库

mysqld --console

 

你可能感兴趣的:(数据库,mysql)