Advertisements
Advertisements
प्रश्न
Give any two differences between Static (embedded) SQL and Dynamic SQL.
उत्तर
Sr. no. | Static SQL | Dynamic SQL |
1. | In Static SQL, the database access procedure is predetermined in the statement. | In Dynamic SQL, Only at runtime can the database access be ascertained. |
2. | Static SQL statements run faster and more efficiently. | Dynamic SQL statements are less efficient. |
3. | These statements are compiled at compile time. | These statements are compiled at run time. |
4. | Application plan parsing, validation, optimization, and generation are compile-time activities. | Application plan parsing, validation, optimization and generation are run time activities. |
5. | Static SQL is used in the case of uniformly distributed data. | Dynamic SQL is used in case of non-uniformly distributed data. |
6. | Statements like EXECUTE IMMEDIATE, EXECUTE, PREPARE are not used. | Statements like EXECUTE IMMEDIATE, EXECUTE, PREPARE are used. |
7. | Static SQL is less flexible. | Dynamic SQL is highly flexible. |
8. | Static SQL is more swift and efficient. | Dynamic SQL is less swift and efficient. |
Notes
Students should refer to the answer according to their questions.
APPEARS IN
संबंधित प्रश्न
Which property describes the various characteristics of an entity?
Give any two basic commands of SQL.
What is a view in SQL?
How is a view created in SQL?
Which one of the following is the shortcut key in MS Excel to 'undo the last action'?
Which one of the following files contains one or more worksheets to organise data?
State any one advantage of maintaining a journal using an electronic spreadsheet instead of preparing it manually.
What is the use of UPDATE command in SQL?
The fill function can be ______ to complete formulas in a range.
What are the SQL statements used in Database testing to manipulate the test table?