SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Using Table Variable Operators

Leveraging SQLScript in Stored Procedures, User Defined Functions, and User Defined Libraries

Overview

🎓 intermediate 10 min. SAP HANAIntermediateSqlExpress Edition

You will learn

  • How to update procedure to use Table Variable Operators to manipulate the immediate table variables
Rich Heilman R Rich Heilman November 1, 2022
Created on May 5, 2020
Contributors

More from Rich Heilman

See all 20 tutorials by Rich Heilman →

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Tutorials: Using Index Based Cell Access

Steps

Intro

In this tutorial, you will update the previous procedure to now use Table Variable Operators to manipulate the immediate table variables. We can use table variable operators to perform DML like operations on table variables without having to invoke the SQL layer. In this exercise, we will experiment with the INSERT, UPDATE, DELETE, and SEARCH operators.


Step 1 Return to Previous Procedure

Return to the procedure called build_products in the procedure folder.

procedure editor
procedure editor

Step 2 Remove Previous Code
+
Step 3 Enter Code for INSERT Operator
+
Step 4 Review Complete Code
+
Step 5 Save, Build, Run and Check Results
+
Step 6 Enter Code for UPDATE Operator
+
Step 7 Review Complete Code
+
Step 8 Save, Build, Run and Check Results
+
Step 9 Enter Code for DELETE Operator
+
Step 10 Review Complete Code
+
Step 11 Save, Build, Run and Check Results
+
Step 12 Enter Code for SEARCH Operator
+
Step 13 Review Complete Code
+
Step 14 Save, Build, Run and Check Results
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 14
1. Return to Previous Procedure 2. Remove Previous Code 3. Enter Code for INSERT Operator 4. Review Complete Code 5. Save, Build, Run and Check Results 6. Enter Code for UPDATE Operator 7. Review Complete Code 8. Save, Build, Run and Check Results 9. Enter Code for DELETE Operator 10. Review Complete Code 11. Save, Build, Run and Check Results 12. Enter Code for SEARCH Operator 13. Review Complete Code 14. Save, Build, Run and Check Results