-
desc dba_tablespaces select tablespace_name from dba_tablespaces desc user_tablespaces select tablespace_name from user_tablespace查看全部
-
启用用户的语句 alter user scott account unlock; 使用scott登陆 connect scott/tiger show user查看全部
-
通过数据字典查看用户select username from dba_users;查看全部
-
desc show dba_users查看数据字典查看全部
-
truncate table table_name删除表的所有数据(比delete要快) drop table table_name删除表的结构(表里的数据也就全没了)查看全部
-
给表改名的语句是rename old_name to new_name查看全部
-
增加字段:alter table userinfo(表名) add remarks(列名) varchar2(500); 修改字段的数据类型: alter table userinfo(表名) modify column_name new_datatype; 删除字段:alter table userinfo(表名) drop column_name; 修改表中的字段名: alter table userinfo(表名) rename column column_name to new_column_name; 修改表名:rename 旧表名 to 新表名;查看全部
-
oracle创建表: create table 表名 ( 数据名 datetype,... )查看全部
-
下面的数据类型中可以表示可变长度的字符有nvarchar2和varchar2查看全部
-
字符型:char(n)、nchar(n)、varchar2(n)、nvarchar2(n) 数值型:number(p,s)p:有效数字s:小数点后的位数、float(n) 日期型:DATE、TIMESTAMP 其他类型:BLOB、CLOB查看全部
-
约定(认识表)查看全部
-
drop tablespace tablespace_name [including contents];删除表空间【表空间的数据】查看全部
-
更改system用户默认表空间的语句是alter user system default tablespace xxx查看全部
-
数据文件,增加删除数据文件 alter tablespace tablespace_name add datafile 'xx.dbf' size xx; 查看表空间的数据文件 select file_name from dba_data_file where tablespace_name='表空间名字要大小'; 删除数据文件查看全部
-
alter tablespace tablespace_name read only | read write (online) alter tablespace tablespace_name online | offline;-----修改表空间的状态查看全部
举报
0/150
提交
取消