Advanced Database - Programming languages

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

9.1

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

____________ is the leading declarative language.

SQL

2
New cards

A(n) ____________ determines how to process statements in a declarative language.

optimizer

3
New cards

optimizer

The compiler determines how the result is processed. Compilers that determine the fastest execution plan are called optimizers. A declarative language specifies what results are desired.

4
New cards

Embedded SQL

codes SQL statements directly in a program written in another language. The keywords EXEC SQL precede all SQL statements so the compiler can distinguish SQL from other statements.

5
New cards

Procedural SQL

extends the SQL language with control flow statements, creating a new programming language. Procedural SQL is limited compared to general-purpose languages, however, and is used primarily for database applications.

6
New cards

application programming interface (API)

a library of procedures or classes. The library links an application programming language to a computer service, such as a database, email, or web service. The procedure or class declarations are written in the application programming language. Ex: JDBC is a library of Java classes that access relational databases.

7
New cards

OPEN

The ________ statement executes a query.

8
New cards

OPEN

The ________ statement positions a cursor before the first row of a result table.

9
New cards

FETCH

The ________ statement moves a cursor to the next row of a result table.

10
New cards

FETCH

The _____ statement assigns query results to shared variables.

11
New cards

DECLARE

The ________ statement associates a cursor name with a query.

12
New cards

CLOSE

The ________ statement releases resources associated with a cursor.

13
New cards

dynamic SQL

Embedded SQL statements that are generated at run-time

14
New cards

static SQL

Embedded SQL statements that are fixed in program code

15
New cards

PREPARE

A(n) _______ statement must appear before an EXECUTE statement without the IMMEDIATE keyword.

16
New cards

USING

Shared variables appear in an EXECUTE statement with the ______ clause.

17
New cards

static

Statements that are written explicitly in program code are ______ SQL.

18
New cards

dynamic

The precompiler cannot compile ______ SQL statements.

19
New cards

stored procedures

procedures that interact with the database and accomplish limited tasks. in procedural SQL

20
New cards

SQL/Persistent Stored Modules (SQL/PSM)

a standard for procedural SQL that extends the core SQL standard