Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
SAP HANA Cookbook

You're reading from   SAP HANA Cookbook Your all-inclusive guide to understanding SAP HANA with practical recipes with over 50 recipes

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781782177623
Length 284 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (16) Chapters Close

SAP HANA Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. SAP HANA Studio – Look and Feel FREE CHAPTER 2. Data Provisioning 3. Modeling 4. Reporting 5. Advanced Features in SAP HANA 6. User Management Introduction to SAP HANA Architecture Applications Powered by SAP HANA Index

Creating procedures using SQLScript


Procedures are a set of statements that are reusable. We use SQLScript to create stored procedures. It is required that you know the basics of the SQLScript language before creating procedures.

Getting ready

To create SQLScript procedures, we should have a basic knowledge of SAP HANA SQLScript.

How to do it…

Open SQL Console for the specific schema where the procedure has to be created or create the procedure from Quick Launch. A sample procedure is shown in the following code snippet:

CREATE PROCEDURE SAP_HANA_COOKBOOK LANGUAGE SQLSCRIPT AS BEGIN
INSERT INTO CUSTOMER_INFO values (1,'CUSTOMER1', 1,'INDIA');
INSERT INTO CUSTOMER_INFO values (2,'CUSTOMER2', 1,'INDIA');
END;

How it works…

In the preceding section, we saw a code snippet that will create a procedure. The syntax to create a procedure is shown in the following code:

CREATE PROCEDURE <schema>.<procedure_name>
{({IN|OUT|INOUT}
param_name data_type {,...})}
{LANGUAGE <LANG>} {SQL SECURITY...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images