Dynamic SQL (STRUCTURED QUERY LANGUAGE)

cspratheekshaa29 24 views 10 slides Aug 24, 2024
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

dynamic sql


Slide Content

Dynamic SQL

Dynamic SQL is a programming technique you can use to build SQL statements as textual strings and execute them later. This technique could prove to be useful in some cases and therefore it’s good to know we have it as an option. 

Embedded SQL

Embedded SQL is a powerful method that allows the integration of high−level programming languages with database management systems (DBMS). It acts as a bridge between applications and databases which helps in data manipulation and communication. Various database management systems offer embedded SQL, giving developers the freedom to select the one that best serves their requirements. Popular DBMS that support Embedded SQL are Altibase , IBM Db2, Microsoft SQL Server, Mimer SQL, Oracle Database, PostgreSQL, and SAP Sybase.

Need of Embedded SQL The goal to make database interactions simpler for application developers and end users determines the demand for embedded SQL. Users often enter values or submit requests while interacting with an application, which requires accessing and changing data contained in a database. Developers may conduct these database tasks without burdening the user with SQL complexities by integrating SQL queries directly into the application code.

Structure of Embedded SQL

Advantages of Embedded SQL Ease of Database Usage Accessing databases is made simple with embedded SQL, which eliminates the need for lengthy coding or other programs. It offers a simple method for getting data by feeding it into the database, doing away with the need for complex and complicated programming.

Security and authorization With embedded SQL, developers may specify and implement appropriate authorization procedures for database access. This helps prevent unauthorized access to sensitive data and ensures that only users with the proper authorization can execute certain tasks.

Integration of Frontend and Backend By permitting a direct connection between the user interface and the database, embedded SQL makes it easier to integrate the front end and back end of an application. This improves the overall user experience by enabling real−time data retrieval and changes. Error prevention Developers can prevent logical mistakes from happening when processing database transactions by integrating SQL queries into the application code. The integration of SQL with the host language guarantees security and improves the application's dependability.
Tags