Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Premium Land with House for Sale
anil1961
Updated:
Yesterday at 10:15 AM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Wednesday at 8:16 PM
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Tuesday at 10:57 AM
🎬 CapCut Pro 1 Month Access! LKR 600
sayuru bandara
Updated:
Tuesday at 10:55 AM
🚀 Google One AI PRO Plan (Gemini Pro Activation) – 18 Months Access! LKR 2200
sayuru bandara
Updated:
Tuesday at 10:53 AM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
කව්ද ? මේ වෙලාවේ online ඉන්නේ ඔබනම්......
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="යාළුවා" data-source="post: 16150552" data-attributes="member: 479821"><p><strong><span style="font-size: 15px"></span></strong></p><p><strong><span style="font-size: 15px">Data = </span></strong>A data definition language or data description language (DDL) is a syntax similar to a computer programming language for defining data structures, especially database schemas</p><p></p><p><strong>History</strong></p><p></p><p> The data definition language concept and name was first introduced in relation to the Codasyl database model, where the schema of the database was written in a language syntax describing the records, fields, and sets of the user data model.[1] Later it was used to refer to a subset of Structured Query Language (SQL) for creating tables and constraints. SQL-92 introduced a schema manipulation language and schema information tables to query schemas. These information tables were specified as SQL/Schemata in SQL:2003. The term DDL is also used in a generic sense to refer to any formal language for describing data or information structures.</p><p> <strong>SQL</strong></p><p></p><p> Many data description languages use a declarative syntax to define fields and data types. SQL, however, uses a collection of imperative verbs whose effect is to modify the schema of the database by adding, changing, or deleting definitions of tables or other objects. These statements can be freely mixed with other SQL statements, so the DDL is not truly a separate language.</p><p> <strong>CREATE statements</strong></p><p></p><p> Create - To make a new database, table, index, or stored procedure.</p><p> A CREATE statement in SQL creates an object in a relational database management system (RDBMS). In the SQL 1992 specification, the types of objects that can be created are schemas, tables, views, domains, character sets, collations, translations, and assertions. Many implementations extend the syntax to allow creation of additional objects, such as indexes and user profiles. Some systems (such as PostgreSQL) allow CREATE, and other DDL commands, inside a transaction and thus they may be rolled back.</p><p> <strong>CREATE TABLE statement</strong></p><p></p><p> A commonly used CREATE command is the CREATE TABLE command. The typical usage is:</p><p> CREATE TABLE [table name] ( [column definitions] ) [table parameters].</p><p> column definitions: A comma-separated list consisting of any of the following</p><p> </p><ul> <li data-xf-list-type="ul">Column definition: [column name] [data type] {NULL | NOT NULL} {column options}</li> <li data-xf-list-type="ul">Primary key definition: PRIMARY KEY ( [comma separated column list] )</li> <li data-xf-list-type="ul">Constraints: {CONSTRAINT} [constraint definition]</li> <li data-xf-list-type="ul">RDBMS specific functionality</li> </ul><p>For example, the command to create a table named employees with a few sample columns would be:</p><p> CREATE TABLE employees ( id INTEGER PRIMARY KEY, first_name VARCHAR(50) NULL, last_name VARCHAR(75) NOT NULL, dateofbirth DATE NULL ); </p><p> </p><p> Note that some forms of CREATE TABLE DDL may incorporate DML (data manipulation language)-like constructs as well, such as the CREATE TABLE AS SELECT (CTAS) syntax of SQL.[2]</p><p> <strong>DROP statements</strong></p><p></p><p> Drop - To destroy an existing database, table, index, or view.</p><p> A DROP statement in SQL removes an object from a relational database management system (RDBMS). The types of objects that can be dropped depends on which RDBMS is being used, but most support the dropping of tables, users, and databases. Some systems (such as PostgreSQL) allow DROP and other DDL commands to occur inside of a transaction and thus be rolled back. The typical usage is simply:</p><p> DROP objecttype objectname.</p><p> For example, the command to drop a table named employees would be:</p><p> DROP TABLE employees; </p><p> </p><p> The DROP statement is distinct from the DELETE and TRUNCATE statements, in that DELETE and TRUNCATE do not remove the table itself. For example, a DELETE statement might delete some (or all) data from a table while leaving the table itself in the database, whereas a DROP statement would remove the entire table from the database.</p><p> <strong>ALTER statements</strong></p><p></p><p> Alter - To modify an existing database object.</p><p> An ALTER statement in SQL changes the properties of an object inside of a relational database management system (RDBMS). The types of objects that can be altered depends on which RDBMS is being used. The typical usage is:</p><p> ALTER objecttype objectname parameters.</p><p> For example, the command to add (then remove) a column named bubbles for an existing table named sink would be:</p><p> ALTER TABLE sink ADD bubbles INTEGER; ALTER TABLE sink DROP COLUMN bubbles; </p><p> </p><p> <strong>Referential integrity statements</strong></p><p></p><p> Finally, another kind of DDL sentence in SQL is one used to define referential integrity relationships, usually implemented as primary key and foreign key tags in some columns of the tables.</p><p> These two statements can be included inside a CREATE TABLE or an ALTER TABLE sentence.</p><p> <strong>Other languages</strong></p><p></p><p> </p><ul> <li data-xf-list-type="ul">XML Schema is an example of a DDL for XML.</li> <li data-xf-list-type="ul">Simple Declarative Language</li> </ul><p><strong>See also</strong></p><p></p><p> </p><ul> <li data-xf-list-type="ul">Data manipulation language</li> <li data-xf-list-type="ul">Data control language</li> <li data-xf-list-type="ul">Select (SQL)</li> <li data-xf-list-type="ul">Insert (SQL)</li> <li data-xf-list-type="ul">Update (SQL)</li> <li data-xf-list-type="ul">Delete (SQL)</li> </ul></blockquote><p></p>
[QUOTE="යාළුවා, post: 16150552, member: 479821"] [B][SIZE=4] Data = [/SIZE][/B]A data definition language or data description language (DDL) is a syntax similar to a computer programming language for defining data structures, especially database schemas [B]History[/B] The data definition language concept and name was first introduced in relation to the Codasyl database model, where the schema of the database was written in a language syntax describing the records, fields, and sets of the user data model.[1] Later it was used to refer to a subset of Structured Query Language (SQL) for creating tables and constraints. SQL-92 introduced a schema manipulation language and schema information tables to query schemas. These information tables were specified as SQL/Schemata in SQL:2003. The term DDL is also used in a generic sense to refer to any formal language for describing data or information structures. [B]SQL[/B] Many data description languages use a declarative syntax to define fields and data types. SQL, however, uses a collection of imperative verbs whose effect is to modify the schema of the database by adding, changing, or deleting definitions of tables or other objects. These statements can be freely mixed with other SQL statements, so the DDL is not truly a separate language. [B]CREATE statements[/B] Create - To make a new database, table, index, or stored procedure. A CREATE statement in SQL creates an object in a relational database management system (RDBMS). In the SQL 1992 specification, the types of objects that can be created are schemas, tables, views, domains, character sets, collations, translations, and assertions. Many implementations extend the syntax to allow creation of additional objects, such as indexes and user profiles. Some systems (such as PostgreSQL) allow CREATE, and other DDL commands, inside a transaction and thus they may be rolled back. [B]CREATE TABLE statement[/B] A commonly used CREATE command is the CREATE TABLE command. The typical usage is: CREATE TABLE [table name] ( [column definitions] ) [table parameters]. column definitions: A comma-separated list consisting of any of the following [LIST] [*]Column definition: [column name] [data type] {NULL | NOT NULL} {column options} [*]Primary key definition: PRIMARY KEY ( [comma separated column list] ) [*]Constraints: {CONSTRAINT} [constraint definition] [*]RDBMS specific functionality [/LIST] For example, the command to create a table named employees with a few sample columns would be: CREATE TABLE employees ( id INTEGER PRIMARY KEY, first_name VARCHAR(50) NULL, last_name VARCHAR(75) NOT NULL, dateofbirth DATE NULL ); Note that some forms of CREATE TABLE DDL may incorporate DML (data manipulation language)-like constructs as well, such as the CREATE TABLE AS SELECT (CTAS) syntax of SQL.[2] [B]DROP statements[/B] Drop - To destroy an existing database, table, index, or view. A DROP statement in SQL removes an object from a relational database management system (RDBMS). The types of objects that can be dropped depends on which RDBMS is being used, but most support the dropping of tables, users, and databases. Some systems (such as PostgreSQL) allow DROP and other DDL commands to occur inside of a transaction and thus be rolled back. The typical usage is simply: DROP objecttype objectname. For example, the command to drop a table named employees would be: DROP TABLE employees; The DROP statement is distinct from the DELETE and TRUNCATE statements, in that DELETE and TRUNCATE do not remove the table itself. For example, a DELETE statement might delete some (or all) data from a table while leaving the table itself in the database, whereas a DROP statement would remove the entire table from the database. [B]ALTER statements[/B] Alter - To modify an existing database object. An ALTER statement in SQL changes the properties of an object inside of a relational database management system (RDBMS). The types of objects that can be altered depends on which RDBMS is being used. The typical usage is: ALTER objecttype objectname parameters. For example, the command to add (then remove) a column named bubbles for an existing table named sink would be: ALTER TABLE sink ADD bubbles INTEGER; ALTER TABLE sink DROP COLUMN bubbles; [B]Referential integrity statements[/B] Finally, another kind of DDL sentence in SQL is one used to define referential integrity relationships, usually implemented as primary key and foreign key tags in some columns of the tables. These two statements can be included inside a CREATE TABLE or an ALTER TABLE sentence. [B]Other languages[/B] [LIST] [*]XML Schema is an example of a DDL for XML. [*]Simple Declarative Language [/LIST] [B]See also[/B] [LIST] [*]Data manipulation language [*]Data control language [*]Select (SQL) [*]Insert (SQL) [*]Update (SQL) [*]Delete (SQL) [/LIST] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom