MYSQL常用命令笔记(一)
2024-10-20 16:09:11
1.show databases; 显示数据库
2.create database test; 创建数据库test
3.use test; 使用这个数据库
4.创建表class:
create table class(
-> id int(4) not null primary key auto_increment,
-> name char(20) not null,
-> sex int(4) not null default'0',
-> degree double(16,2));
5.show tables; 显示所有的表
6.describe class; 描述表
7.insert into class values(1,'tom',1,40); 插入相关数据
8.select * from class; 查询class表里的所有数据
9. select * from class order by id limit 0,2; 显示前两行数据
最新文章
- php操作mongodb
- 4. 什么是AJAX
- 对于undefined和null,还有处理这一类的数组
- Linux下mail/mailx命令发送邮件
- 永久关闭防火墙和selinux
- 《C和指针》章节后编程练习解答参考——6.2
- 【模拟】HDU 5774 Where Amazing Happens
- 《Oracle Applications DBA 基础》- 9 - Concurrent Processing[Z]
- idea破解码
- 【转载】Stack Overflow: The Architecture - 2016 Edition
- ajax获取后台传递的json数据
- UX2 beta 3正式发布!!
- KVM克隆 快照
- Python图片爬虫
- 如何控制Bean对象的作用域,默认作用域是什么
- 02_c3p0之c3p0-config.xml配置案例,操作c3p0的jdbcUtil工具类的编写
- Spark的Streaming和Spark的SQL简单入门学习
- Junit测试的理解------java基础知识
- img标签插入图片返回403,浏览器可以直接打开
- [z]nativeSql