赞
踩
为了方便用户从Oracle数据库迁移到LightDB上,从LightDB24.1版本开始,支持create/drop directory命令。
使用约束:
lightdb@oracle_test=# create directory adir as '/home/lightdb';
create_directory
------------------
t
(1 row)
lightdb@oracle_test=# select * from utl_file.utl_file_dir;
dir | dirname
---------------+---------
/home/lightdb | ADIR
(1 row)
lightdb@oracle_test=#
lightdb@oracle_test=# create directory adir as '/home/lightdb';
ERROR: directory ADIR is exist
lightdb@oracle_test=# create or replace directory adir as '/home/lightdb';
create_directory
------------------
t
(1 row)
lightdb@oracle_test=# select * from utl_file.utl_file_dir;
dir | dirname
---------------+---------
/home/lightdb | ADIR
(1 row)
lightdb@oracle_test=#
lightdb@oracle_test=# drop directory adir;
drop_directory
----------------
t
(1 row)
lightdb@oracle_test=# select * from utl_file.utl_file_dir;
dir | dirname
-----+---------
(0 rows)
lightdb@oracle_test=#
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。