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; 显示前两行数据

最新文章

  1. php操作mongodb
  2. 4. 什么是AJAX
  3. 对于undefined和null,还有处理这一类的数组
  4. Linux下mail/mailx命令发送邮件
  5. 永久关闭防火墙和selinux
  6. 《C和指针》章节后编程练习解答参考——6.2
  7. 【模拟】HDU 5774 Where Amazing Happens
  8. 《Oracle Applications DBA 基础》- 9 - Concurrent Processing[Z]
  9. idea破解码
  10. 【转载】Stack Overflow: The Architecture - 2016 Edition
  11. ajax获取后台传递的json数据
  12. UX2 beta 3正式发布!!
  13. KVM克隆 快照
  14. Python图片爬虫
  15. 如何控制Bean对象的作用域,默认作用域是什么
  16. 02_c3p0之c3p0-config.xml配置案例,操作c3p0的jdbcUtil工具类的编写
  17. Spark的Streaming和Spark的SQL简单入门学习
  18. Junit测试的理解------java基础知识
  19. img标签插入图片返回403,浏览器可以直接打开
  20. [z]nativeSql

热门文章

  1. python_class21
  2. openGL一些概念02
  3. css之content
  4. 关于c#里的集合的,结构体,枚举的定义,解释与应用
  5. Zbar -- 源码分析
  6. ubuntu下使用PIL中的show函数,无法显示图片的问题
  7. g2o20160430下的csparse文件夹内的CMakeLists.txt
  8. Luogu 3939 数颜色
  9. 优先队列详解priority_queue .RP
  10. Netty学习大纲