Oracle中建立物化视图报错 今天在建立视图的时候,报了一个错:ORA-01723: zero-length columns are not allowed. 建视图的语句: create materialized view VW_XX refresh force on demand as select '' f_a,b f_b from xx 根据后面的语句创建视图,都是可以的,但是根据查询语句创建物化视图就出现错误了.网上找了一下,原因是:ORA-01723是ORACLE规定因为列的长度最…
create tablespace studentDBdatafile 'E:\datafiles_1.dbf' size 10m; create user Huang_Ying_Boidentified by hyb123456default tablespace studentDB grant connect to Huang_Ying_Bogrant resource to Huang_Ying_Bo drop table TechEd_T_Students /*创建学生信息表*/crea…
如果用普通用户,如果没授权,是无法建立dblink的: [oracle@oracle000 ~]$ sqlplus gao/gao lines) SQL Production :: Copyright (c) , , Oracle. All rights reserved. Oracle - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options に接続されました…
在开发阶段往Oracle数据库中多个表格中导入了许多测试数据,倘若一张张表执行"truncate table tablename"语句显得十分繁琐.在PL/SQL中可以用代码进行批量删除表格数据.代码如下: declare cursor c_t is (select table_name from user_tables where table_name like 'D%');--声明一个游标 table_name user_tables.table_name%type;--声明一个表…
1.多列建立索引 SQL> create index dex_index2 on dex(sex,name); Index created. SQL> select object_name,object_type from user_objects; OBJECT_NAME OBJECT_TYPE -------------------------------------------------------------------------------- DEX TABLE DEX_IDX1…