memorization 3

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

29 Terms

1
New cards

precision

the total number of digits a numeric column may store.

2
New cards

scale

specifies the exact number of digits that can be stored to the right of the decimal point for a numeric value

3
New cards

range

defines the minimum and maximum values that can be stored within a column, as determined by its data type

4
New cards

VARCHAR(n)

a data type that stores a string up to “n” characters longs, but will only use the minimum storage space necessary to do so.

5
New cards

CHAR(n)

is a data type that stores a string up to “n” characters long and always uses “n” characters of storage space to do so

6
New cards

DECIMAL(p,s)

is a data type that stores exact values of numbers with a specific number of total digits and specific number of digits to the right of the decimal point.

7
New cards

INT

is a data type that stores whole numbers.

8
New cards

DATETIME

is a data type that stores the value of an hour, minute and second for a year, month and day

9
New cards

Data Definition Language (DDL) statements

are SQL commands used to create, modify, and delete the structure of database objects.


10
New cards

Data Manipulation Language (DML)

statements are SQL commands used to insert, retrieve, modify, and delete data stored within the database objects.

11
New cards

Data Query Language (DQL)

SQL commands used to retrieve and view data from a database.

12
New cards

Data Control Language (DCL)

SQL commands used to manage user permissions and access rights to the database and its objects

13
New cards

USE {database name}

will display the name of all databases that you have access privileges for

14
New cards

SHOW TABLES

display the name of tables in the currently selected database.

15
New cards

SHOW COLUMNS FROM

will display the information about the columns within a table

16
New cards

DESCRIBE

display the information about the columns within a table.

17
New cards

CREATE DATABASE

will add a new database on a database server.

18
New cards

DROP DATABASE

will remove an existing database on a database server.

19
New cards

column property

may define a column’s name, data type and options.

20
New cards

constraint property

may define a constraint with a name, type, and options.

21
New cards

CREATE TABLE {table name}

add a new table to the currently selected database.

22
New cards

DROP TABLE {table name}

remove an existing table in the currently selected database.

23
New cards

ALTER TABLE {table name}

will modify the structure of a table.

24
New cards

ADD COLUMN {column definition}

add a column to a table.

25
New cards

DROP COLUMN {column_name}

will remove a column from a table

26
New cards

MODIFY COLUMN {column_definition}

can change the column properties of a column in a table.

27
New cards

CHANGE COLUMN {old_column_name}

can change the column properties of a column in a table including renaming that column.

28
New cards

ADD CONSTRAINT {constraint_name}

can add a constraint to a table.

29
New cards

RENAME {new table name}

will rename a table.