2) Database Management

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/64

flashcard set

Earn XP

Description and Tags

Chapter 2

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

65 Terms

1
New cards

automated script

a series of SQL statements prepared in advance and saved in a file or as a database stored procedure, and is executed repeatedly

2
New cards

Data Definition Language (DDL)

SQL sublanguage that defines a database structure

3
New cards

Data Query Language (DQL)

SQL sublanguage that retrieves data

4
New cards

Data Manipulation Language (DML)

SQL sublanguage that inserts, updates, and deletes data

5
New cards

Data Transaction Language (DTL)

SQL sublanguage that manages transactions

6
New cards

Data Control Language (DCL)

SQL sublanguage that specifies user access to data

7
New cards

Literal

SQL language element, explicit value such as a character string or number

8
New cards

keyword

SQL language element, word with special meaning for the processor

9
New cards

identifier

SQL language element, name of a database object such as a column, database, or table

10
New cards

expression

SQL language element, sequence of literals, identifiers, and operations that evaluate to a single value

11
New cards

comment

SQL language element, text that is ignored by the language processor

12
New cards

statement

a complete, executable instruction ending with a semicolon

13
New cards

SQL standard

specifies the official syntax and behavior of the SQL statements, published by the ANSI and the ISO

14
New cards

database system instance

a single executing copy of a database system

15
New cards

CREATE DATABASE DatabaseName

creates a new database

16
New cards

DROP DATABASE DatabaseName

deletes a database, including all tables in the database

17
New cards

SHOW DATABASE

lists all databases in the database system

18
New cards

SHOW TABLES

lists all the tables from the default database

19
New cards

SHOW COLUMNS FROM TableName

lists all columns in the TableName table of the default database

20
New cards

SHOW CREATE TABLE TableName

shows the CREATE TABLE statement for the TableName table of the default database

21
New cards

table

has a name, a fixed sequence of columns, and a varying set of rows

22
New cards

column

has a name and a data type

23
New cards

row

has an unnamed sequence of values

24
New cards

cell

a single column in a single row

25
New cards

CREATE TABLE

creates a new table by specifying the table name, column names, and column data types

26
New cards

DROP TABLE

deletes a table, along with that tables rows, from the database

27
New cards

ALTER TABLE

adds, deletes, or modifies columns on an existing table

28
New cards

ADD

adds a column

29
New cards

CHANGE

modifies a column

30
New cards

DROP

deletes a column

31
New cards

data type

a named set of values from which column values are drawn

32
New cards

INT, SMALLINT

represents positive and negative numbers

33
New cards

FLOAT, DECIMAL

represents numbers with fractional values

34
New cards

CHAR, VARCHAR

represents textual characters

35
New cards

DATE, TIME, DATETIME, TIMESTAMP

represents time, date, or both

36
New cards

BLOB, BINARY, VARBINARY, IMAGE

stores data as the database appears in memory or computer files

37
New cards

POLYGON, POINT, GEOMETRY

stores geometric information, such as lines, polygons, and map coordinates

38
New cards

XML, JSON

contains textual data in a structured format

39
New cards

signed

a number that may be negative

40
New cards

unsigned

a number that cannot be negative

41
New cards

NULL

a special value to represent unknown or inapplicable data

42
New cards

NOT NULL

prevents a column from having a NULL value

43
New cards

INSERT

adds rows to a table

44
New cards

INSERT INTO

names the table and columns where data is to be added

45
New cards

VALUES

specifies the column values to be added

46
New cards

DEFAULT

optional keywords that can follow the column name and data type in a CREATE TABLE statement

47
New cards

UPDATE

modifies existing rows in a table

48
New cards

SET

specifies the new column values

49
New cards

DELETE

deletes existing rows in a table

50
New cards

FROM

keyword followed by the table name whose rows are to be deleted

51
New cards

TRUNCATE

deletes all rows from a table

52
New cards

primary key

a column, or group of columns, used to identify a row

53
New cards

simple primary key

consists of a single column

54
New cards

composite primary key

consists of multiple columns, must be: unique, not NULL, and minimal

55
New cards

auto-increment column

a numeric column that is assigned an automatically incrementing value when a new row is inserted

56
New cards

foreign key

a column, or group of columns, that refer to a primary key in another table

57
New cards

referential integrity

a relational rule that requires foreign key values

58
New cards

RESTRICT

rejects an insert, update, or delete that violates preferential integrity

59
New cards

SET NULL

sets invalid foreign keys to the foreign key default value

60
New cards

CASCADE

propagates primary key changes to foreign keys

61
New cards

constraint

a rule that governs allowable values in a database

62
New cards

column constraint

appears after a column name and data type in a CREATE TABLE statement

63
New cards

table constraint

appears in a separate clause of a CREATE TABLE statement and governs values in one or more columns

64
New cards

UNIQUE

ensures that values in a column, or group of columns, are unique

65
New cards

CHECK

specifies an expression on one or more columns of a table

Explore top flashcards

Nisäkkäät
Updated 773d ago
flashcards Flashcards (47)
31-35
Updated 79d ago
flashcards Flashcards (69)
BIOL 375 Exam 2
Updated 1026d ago
flashcards Flashcards (76)
MB3
Updated 191d ago
flashcards Flashcards (37)
Tema 6: Contexto 2
Updated 970d ago
flashcards Flashcards (30)
Emotions and moods
Updated 187d ago
flashcards Flashcards (114)
Nisäkkäät
Updated 773d ago
flashcards Flashcards (47)
31-35
Updated 79d ago
flashcards Flashcards (69)
BIOL 375 Exam 2
Updated 1026d ago
flashcards Flashcards (76)
MB3
Updated 191d ago
flashcards Flashcards (37)
Tema 6: Contexto 2
Updated 970d ago
flashcards Flashcards (30)
Emotions and moods
Updated 187d ago
flashcards Flashcards (114)