TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ken H
NA
646
361.7k
Stored procedure syntax in oracle
Apr 3 2012 3:37 AM
hi all,
my stored procedure original SQL Server syntax is as follows:
--insert data
CREATE PROC AddTranData
@Tran_Num nchar(20),
@Start_STATION NCHAR(20),
@END_STATION NCHAR(20),
@PIECE INT,
@CONSIGNEE NCHAR(20),
@SHIPPING_ADDRESS NCHAR(50),
@EXPLAINED NCHAR(30)
AS
INSERT INTO TRANSPORT_INFO
VALUES(@TRAN_NUM,@START_STATION,@END_STATION,@PIECE,@CONSIGNEE,@SHIPPING_ADDRESS,@EXPLAINED)
--updated data
CREATE PROC UpdateTranData
@Tran_Num nchar(20),
@Start_STATION NCHAR(20),
@END_STATION NCHAR(20),
@PIECE INT,
@CONSIGNEE NCHAR(20),
@SHIPPING_ADDRESS NCHAR(50),
@EXPLAINED NCHAR(30)
AS
UPDATE TRANSPORT_INFO SETPIECE=@PIECE,CONSIGNEE=@CONSIGNEE,SHIPPING_ADDRESS=@SHIPPING_ADDRESS,
TRAN_NUM=@TRAN_NUM
Now, I want to change it to Stored procedure syntax in oracle.
thanks.
Reply
Answers (
3
)
Ref cursor with dynamic columns
The oracle Stored procedure problem