1、在SQL*PLUS中也可以使用。但无法在另一个SESSION中调用。
放到存储过程、函数或包中是一般的做法。
声明变量,要看你的具体用途。
2、看不懂,我想可以。
3、ORACLE可以 创建,提供手工创建和图形工具创建两种方式。
ORACLE中叫做SCHEMA模式,和用户差不多,但比用户的外延要广。
建的表放在模式下。
放到存储过程、函数或包中是一般的做法。
声明变量,要看你的具体用途。
2、看不懂,我想可以。
3、ORACLE可以 创建,提供手工创建和图形工具创建两种方式。
ORACLE中叫做SCHEMA模式,和用户差不多,但比用户的外延要广。
建的表放在模式下。
顺便再问一下:oracle中有没有一个像MS SQL中的left,right的函数的?
2.入参IN不能被赋值只能调用,OUT只能被赋值,IN OUT 既可以被调用,也可以被赋值。
3.可以通过oracle本身提供的管理工具创建数据库,也可以通过脚本手工创建。 每个用户对应一个SCHEMA和相应的表空间,表创建时可指定表空间,也有默认的用户表空间,表创建后就会在该表空间下,该表的OWNER自然是该用户。
2.入参IN不能被赋值只能调用,OUT只能被赋值,IN OUT 既可以被调用,也可以被赋值。
3.可以通过oracle本身提供的管理工具创建数据库,也可以通过脚本手工创建。 每个用户对应一个SCHEMA和相应的表空间,表创建时可指定表空间,也有默认的用户表空间,表创建后就会在该表空间下,该表的OWNER自然是该用户。
-------------------------------------------同意楼上的。
建库我包了^_^:CREATE DATABASE ShepIT
Maxinstances 1
Maxloghistory 1
Maxlogfiles 10
Maxlogmembers 15
Maxdatafiles 100
Datafile ‘<directory>\datafile_01.dbf’
size 300M reuse autoextend on next 15M maxsize unlimited
character set WE8MSWIN1252
national character set AL16UFT16
logfile
group 1 (‘<directory>\redo_01.log’) size 75M
group 2 (‘<directory>\redo_02.log’) size 75M
group 3 (‘<directory>\redo_03.log’) size 75M
default temporary tablespace TEMP
tempfile ‘<directory>\temp_01.dbf’
extent management local uniform size 1M
undo tablespace UNDO_TS datafile ‘<directory>\datafile_01.dbf’
size 125M reuse autoextend on next 15M maxsize unlimited;Oracle, should respond by saying that the database is created. Once this is done you are ready to load scripts that are needed to support your Oracle products by typing the following commands@<directory>\catalog.sql
@<directory>\catproc.sql
@<directory>\catexp.sql
也有left,right函数,不过我一般用substr(string,pos,length)
这样就可以了!
我测试了一下left,right好像不能用呀?
procedure or replace pr1
is
i date;
begin
dbms_output.put_line(date);
end;
應該是
create or replace procedure pt1
is
i date;
begin
execute immediate 'select sysdate from dual' into i;
end;
建议你在学习一下PL/SQL,这个是基础,要不遇到一点问题就到MSDN上来问,会比较浪费时间。