文件名称:Struts2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:99.93kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
alter table tbl_name add col_name type
例如,给表增加一列weight
mysql>alter table pet add weight int
删除列
alter table tbl_name drop col_name
例如,删除列weight:
mysql>alter table pet drop weight
改变列
alter table tbl_name modify col_name type
例如,改变weight的类型:
mysql> alter table pet modify weight samllint
另一种方法是:
alter table tbl_name change old_col_name col_name type
例如:
mysql> alter table pet change weight weight samllint
给列更名
mysql>alter table pet change weight wei
给表更名
alter table tbl_name rename new_tbl
例如,把pet表更名为animal
mysql>alter table pet rename animal
-alter table tbl_name add col_name type for example, to form an increase in weight mysql> alter table pet add weight int Remove Columns alter table tbl_name drop col_name For example, the deletion of column weight: mysql> alter table pet drop weight change out alter table tbl_name modify col_name type for example, the type of weight change: mysql> alter table pet modify weight samllint Another method is: alter table tbl_name change old_col_name col_name type for example: mysql> alter table pet change weight weight samllint to the column name mysql> alter table pet change weight wei renamed to table alter table tbl_name rename new_tbl for example, changed its name to the pet table animal mysql> alter table pet rename animal
例如,给表增加一列weight
mysql>alter table pet add weight int
删除列
alter table tbl_name drop col_name
例如,删除列weight:
mysql>alter table pet drop weight
改变列
alter table tbl_name modify col_name type
例如,改变weight的类型:
mysql> alter table pet modify weight samllint
另一种方法是:
alter table tbl_name change old_col_name col_name type
例如:
mysql> alter table pet change weight weight samllint
给列更名
mysql>alter table pet change weight wei
给表更名
alter table tbl_name rename new_tbl
例如,把pet表更名为animal
mysql>alter table pet rename animal
-alter table tbl_name add col_name type for example, to form an increase in weight mysql> alter table pet add weight int Remove Columns alter table tbl_name drop col_name For example, the deletion of column weight: mysql> alter table pet drop weight change out alter table tbl_name modify col_name type for example, the type of weight change: mysql> alter table pet modify weight samllint Another method is: alter table tbl_name change old_col_name col_name type for example: mysql> alter table pet change weight weight samllint to the column name mysql> alter table pet change weight wei renamed to table alter table tbl_name rename new_tbl for example, changed its name to the pet table animal mysql> alter table pet rename animal
相关搜索: alter modify
table t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Struts 2中实现文件下载(修正中文问题).docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.