摘要: –删除表空间,删除后,如果物理文件没删除,手... 阅读全文
posted @ 2016-08-30 23:57 大山606 阅读(141) 评论(0) 推荐(0) 编辑
摘要: –删除表空间,删除后,如果物理文件没删除,手动删除 –切记切记 先用命令删,如果直接删除物理文件 –数据库启动时会报错:ORA-01033语法: drop tablespace 表空间名称 including contents and datafiles cascade const... 阅读全文
posted @ 2016-08-30 23:56 大山606 阅读(844) 评论(0) 推荐(0) 编辑
摘要: –创建表空间(需要管理员权限) create tablespace 表空间名字 datafile ‘·········\ATM.dbf’—-”中为表空间存放的物理路径 size ?M –设置空间初始值大小 为 : ? M autoextend on next ?M maxsize ... 阅读全文
posted @ 2016-08-30 23:48 大山606 阅读(379) 评论(0) 推荐(0) 编辑
摘要: –创建表空间(需要管理员权限) create... 阅读全文
posted @ 2016-08-30 23:48 大山606 阅读(74) 评论(0) 推荐(0) 编辑
摘要: –删除表(未验证在有数据,并且互有主外键时,是否可用) –表中 列 为 其他表 外键 且有数据 应先解除约束,或删除相关表语法: drop table 表名;例:drop table t_userinfo; 阅读全文
posted @ 2016-08-30 23:41 大山606 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: –删除表(未验证在有数据,并且互有主外键时,... 阅读全文
posted @ 2016-08-30 23:41 大山606 阅读(118) 评论(0) 推荐(0) 编辑
摘要: – 修改表名(未验证在有数据,并且互有主外键... 阅读全文
posted @ 2016-08-30 23:38 大山606 阅读(122) 评论(0) 推荐(0) 编辑
摘要: – 修改表名(未验证在有数据,并且互有主外键时,是否可用)语法: rename 现表名 to 新表名;例: rename T_Student2 to T_Stu; 阅读全文
posted @ 2016-08-30 23:37 大山606 阅读(254) 评论(0) 推荐(0) 编辑
摘要: – 删除一个字段(即删除一列)(未验证在有数... 阅读全文
posted @ 2016-08-30 23:37 大山606 阅读(148) 评论(0) 推荐(0) 编辑
摘要: – 删除一个字段(即删除一列)(未验证在有数据,并且互有主外键时,是否可用)语法:alter table 表名 drop column 字段名(即列名);例:alter table T_Student2 drop column sex; 阅读全文
posted @ 2016-08-30 23:36 大山606 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: – 添加一个字段 (即 添加 一列)(未验证... 阅读全文
posted @ 2016-08-30 23:36 大山606 阅读(351) 评论(0) 推荐(0) 编辑
摘要: – 添加一个字段 (即 添加 一列)(未验证在有数据,并且互有主外键时,是否可用)语法:alter table 表名 add(列名(即 字段名) 数据类型及长度);例:alter table T_Student2 add(phone number); 阅读全文
posted @ 2016-08-30 23:35 大山606 阅读(4361) 评论(0) 推荐(0) 编辑
摘要: –修改列名(即修改字段名) alter ta... 阅读全文
posted @ 2016-08-30 23:32 大山606 阅读(138) 评论(0) 推荐(0) 编辑
摘要: –修改列名(即修改字段名) alter table 表名 rename column 现列名 to 新列名; 阅读全文
posted @ 2016-08-30 23:31 大山606 阅读(398) 评论(0) 推荐(0) 编辑
摘要: – 修改列的数据类型( 即 修改字段的数据类型)(未验证在有数据,并且互有主外键时,是否可用) –另外注意 此处 表 不能用 别名! 语法:alter table 表名 modify (字段名(即列名) 数据类型及长度);例: alter table T_Student2 modi... 阅读全文
posted @ 2016-08-30 23:27 大山606 阅读(296) 评论(0) 推荐(0) 编辑
摘要: – 修改列的数据类型( 即 修改字段的数据类... 阅读全文
posted @ 2016-08-30 23:27 大山606 阅读(80) 评论(0) 推荐(0) 编辑
摘要: // 9.有一分数序列:2/1,3/2,5/... 阅读全文
posted @ 2016-08-30 11:51 大山606 阅读(189) 评论(0) 推荐(0) 编辑
摘要: // 9.有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13…求出这个数列的前20项之和public static void Test9() { int a = 2, b = 1, temp; // double a=2,b=1,temp; dou... 阅读全文
posted @ 2016-08-30 11:50 大山606 阅读(754) 评论(0) 推荐(0) 编辑
摘要: // 7.笼子里一共有鸡和兔子35只,一共有... 阅读全文
posted @ 2016-08-30 11:00 大山606 阅读(107) 评论(0) 推荐(0) 编辑
摘要: // 7.笼子里一共有鸡和兔子35只,一共有94条退, 笼子里一共有鸡和兔子共多少只public static void Test7() { for (int i = 0; i 11 */ /* 2、变量名 i j ,意义不明确,不易区分 */public static vo... 阅读全文
posted @ 2016-08-30 10:59 大山606 阅读(468) 评论(0) 推荐(0) 编辑