mysql基本操作
来源:互联网 发布:淘宝 新店扶持 编辑:程序博客网 时间:2024/06/06 01:15
1.查看数据库show databases**
show databases显示6个数据库。
2.创建新的数据库create database 学生管理系统
3. 删除数据库drop 学生管理系统
4. 创建表create table student(id1 int,id2 int)
show tables;`
5.查看表
6.删除表drop table student;
7.修改表字段的属性alter table student modify column id2 int
8.增加表的字段alter table student add column id3 int;
9.删除表的字段alter table student drop column id3
10.改变字段名alter table student change id2 fengwenwen int
rename table student to student 1;
11.重命名数据库表:
alter table student1 modify id3 int first`
12.字段排序
13.向表中插入数据insert into student valuse(1,2,3)
14.查询表中的数据select *form
15.更新update student set =? where?
0 0
- MySQL的基本操作
- Mysql 基本操作
- mysql基本操作
- Mysql的基本操作
- Mysql 基本命令操作
- mysql基本操作
- MySQL的基本操作
- MySQL常用操作基本
- MySQL基本操作
- MySQL基本操作
- MySql数据库基本操作
- MySQL 安装 (基本操作)
- MySQL基本操作(控制台)
- mysql 基本操作函数
- MySQL的基本操作
- MySql 基本操作
- mysql操作基本命令
- MySQL 基本操作命令
- IOS 内存管理机制总结
- Java中定时任务的实现:Timer与ScheduledExecutorService的不同
- POJ 3687 拓扑排序
- 1. Two Sum
- nginx https 跳转方法
- mysql基本操作
- [IO]——编码和解码
- 线程池中CompletionService的应用
- 字符串转成整数大数乘法
- 说说JSON和JSONP,也许你会豁然开朗
- 关于string函数族实现的准备
- 计算几何----判断点是否在一个矩形内
- [你必须知道的.NET]第三十五回,判断dll是debug还是release,这是个问题
- [IO]——指定字符集