use test
go
--select * from stu2
drop table stu2--删除表
go
create table stu2 --新建一个名为stu2表
(
id int primary key,
name char(20) not null,
sex char(10) not null
)
--创建完的修改操作
alter table stu2 add age int --添加列
alter table stu2 add grade int
alter table stu2 add teacher int alter table stu2 alter column teacher char(20)--修改列数据类型 alter table stu2 drop column sex --删除列

  

最新文章

  1. C#的Socket实现UDP协议通信
  2. Python之路----------迭代器
  3. tomcat + apache +jkmod 配置php,jsp共存
  4. 通过 Session 操纵对象
  5. TP5学习基础二:目录结构、URL路由、数据操作
  6. Spring详解(七)------事务管理
  7. 关于字符型char变量
  8. JS随机数不重复
  9. Centos6.4 + mysql-5.6.38-linux-glibc2.12-x86_64.tar 实现mysql主从复制
  10. Hadoop伪分布式的搭建
  11. WebForm文件上传
  12. codeforces 242E - XOR on Segment (线段树 按位数建树)
  13. 子串 [NOIP2015]
  14. Hive之分区(Partitions)和桶(Buckets)
  15. MYSQL 中的日期操作(不包含跨年问题)
  16. 【原创】查询某个SQL在Oracle的会话
  17. 八皇后II
  18. 第四章 mybatis批量insert
  19. Eclipse——工作台
  20. Mac上安装第三方应用显示包资源破坏解决办法

热门文章

  1. Oracle学习总结(9)—— Oracle 常用的基本操作
  2. Android SimpleAdapter
  3. DIV+CSS学习笔记(CSS)
  4. 回家过年,CSDN博客暂时歇业
  5. 零基础学python-2.3 凝视
  6. iOS开发UI篇--一个侧滑菜单SlidingMenu
  7. css3-12 transition+css或transform实现过渡动画
  8. testng并发测试与测试并发
  9. Swift入坑系列—集合类型
  10. POJ 1287 Networking (ZOJ 1372) MST