下面为您介绍的是查询表的字段名的sql语句写法,sql语句可以实现许多的功能,希望可以您在学习sql语句使用方面获得启示。 1. select name from syscolumns where id = (select id from sysobjects where type = 'u' and name = '相应表名') 2. 3. 或者 4. 5. select name from syscolumns where id = object_id('相应表名') 用以上sql语句输入
索引与约束 索引 1、如何建立索引 create index 索引名 on 表名(列名) create index book_bid_idx on book(bid); create index abc on student(sid,sname); create index abc1 on student(sname,sid);他们是不同的 2、查看索引 select index_type,index_name,table_name,uniqueness from user_indexes;
首先查询表空间的大小以及文件路径地址
select tablespace_name, file_id, file_name,round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name;
解决方案一
//修改表空间大小(32000可改为想要的数值)
alter database datafile '要修改的数据文件地址' resize 32000m;
解决方案二
//新增数据文件
AL
1.create user username identified by password;//建用户名和密码oracle ,oracle 2.grant connect,resource,dba to username;//授权 grant connect,resource,dba,sysdba to username; 3.connect username/password//进入。 4.select table_name,column_name from user_tab_columns