SQL Server Stored Procedure - Hotel Management System
I wanted to ask a question about how to use stored procedure instead of normal selecting stuff (e.g. select * from ... where ...), include the use of cursor. And also, I have created a type (servicePackage) to specify the name of each services (many service provided by the hotel). After that, I have to go through with the stored procedure part which is the code can be seen below: CREATE TYPE servicePackage AS TABLE (SERVICE_NAME CHAR(20)); CREATE PROCEDURE usp_createPackage -- INPUT PARAMETERS @ADVERTISEMENT_ID INT, @ADV_DESC VARCHAR(100), @START_DATE DATETIME, @END_DATE DATETIME, @PRICE DECIM
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.