What is a DDL script in the context of databases?

12

1

What is a DDL script in the context of databases?

lalala

Posted 2009-09-12T10:43:11.280

Reputation:

Question was closed 2017-02-27T08:51:08.510

1Needs more explanation. – ukanth – 2009-09-12T10:49:25.637

Answers

20

DDL = Data Definition Language

From the Wikipedia entry for DDL:

A Data Definition Language (DDL) is a computer language for defining data structures. The term was first introduced in relation to the Codasyl database model, where the schema of the database was written in a Data Definition Language describing the records, fields, and "sets" making up the user Data Model. Initially it referred to a subset of SQL, but is now used in a generic sense to refer to any formal language for describing data or information structures, like XML schemas.

So, for databases, a DDL script is a script that creates the structure (tables, columns, indexes, ...) of a database.

Snark

Posted 2009-09-12T10:43:11.280

Reputation: 30 147

0

DDL - Data Definition Language

Commonly, it consists of some SQL statements to create schemas and tables with their inter-relationships, i.e. foreign key constraints.

You can use this script when you need to install new system on client side. No need to create tables one by one. These types of scripts are contained within files with ".sql" extension. You just need to open your data base management software (ex-MySql Workbench) and import the file or copy-paste the script to the script editing area and run it.

Yasitha Bandara

Posted 2009-09-12T10:43:11.280

Reputation: 101

1Can you expand on this? – bertieb – 2017-02-26T21:51:22.753