廿是什么意思| 男性尿分叉是什么原因| 枸杞泡水喝有什么作用和功效| 孕妇过敏可以用什么药| 结婚55周年是什么婚| 什么食物含维生素b12最多| 孕妇吃什么蔬菜| 施华洛世奇算什么档次| 重度脂肪肝吃什么药| yy是什么意思| 鼠五行属什么| 北海龙王叫什么| 乌岽单丛是什么茶| 舌苔厚发白是什么原因| 气滞血瘀吃什么中成药| 孕期血糖高有什么症状| 爆裂性骨折什么意思| 洗头膏什么牌子好| 汗斑用什么药膏好| bpd是胎儿的什么| 心肌桥是什么意思| 怀孕前三个月不能吃什么| 干姜和生姜有什么区别| 单纯性苔藓是什么病| 双肾尿盐结晶是什么意思| 安抚奶嘴什么时候开始用| 为什么不说话| 一点点奶茶什么最好喝| 择日什么意思| 早期复极是什么意思| 小清新是什么意思啊| 什么是otc| 男女身份证号码有什么区分| 什么是热辐射| 过敏是什么原因引起的| 甲申日是什么意思| 红参有什么作用| 戒烟有什么好处| 梦见吵架是什么意思| 男朋友过生日送什么礼物最有意义| 美国是什么洲| 五福是什么生肖| 海蓝之谜适合什么年龄| 夏天可以玩什么| 草字头加青读什么| 上火了吃什么水果降火最快| 吊什么意思| 什么心什么力| 脸上容易出油是什么原因| 滚球是什么意思| 卯木代表什么| 多核巨细胞是什么意思| 硫磺是什么| 回南天是什么时候| 脊髓灰质炎是什么病| 老人反复发烧是什么原因引起的| 什么手机信号最好最强| l代表什么| 银黑了用什么可以洗白| 为什么要割包皮| 1月22号什么星座| 失眠可以吃什么药| 焦虑症挂什么科| 高血压二级是什么意思| 身体缺钠会有什么症状| 儿童肥胖挂什么科| 胃顶的难受是什么原因| 淋球菌是什么病| 为什么种牙那么贵| 肚子老是胀是什么原因| 钥匙像什么| 龟头太敏感吃什么药| 废话是什么意思| 傻瓜是什么意思| 扑救带电火灾应选用什么灭火器| 什么叫服务器| gm是什么| 心脏下边是什么器官| 文房四宝指的是什么| 治标不治本是什么意思| 盆腔炎有什么明显症状| 不可翻转干燥是什么意思| 什么就是什么造句| 焦虑症吃什么药效果好| 三角梅什么时候换盆| 动物的脖子有什么作用| 抗核抗体是检查什么的| ri是什么意思| 胃胀气是什么原因引起的| 貔貅五行属什么| 什么军什么马| 梦见自己掉头发是什么意思| 高姓和什么姓是世仇| 海带排骨汤海带什么时候放| 晚上9点到10点是什么时辰| 后脑勺疼痛什么原因引起的| 生普洱和熟普洱有什么区别| 鸡全蛋粉是什么东西| 男人说冷静一段时间是什么意思| 球镜柱镜是什么意思| 吃花生有什么好处| 黑鱼不能和什么一起吃| 急性胃炎吃什么药好| 双相情感障碍什么意思| 欠佳是什么意思| 手脚麻木吃什么药| 非洲讲什么语言| gmp认证是什么意思| 外来猫进家有什么预兆| 吃什么减脂肪最快最有效的方法| 穿裙子搭配什么鞋子| 牛油果有什么营养| 投影仪什么牌子好| cv什么意思| 吃什么补钾快| 恨铁不成钢什么意思| 胆固醇高不能吃什么水果| 无以言表是什么意思| 月加亏念什么| 手指缝脱皮是什么原因| 过敏性皮肤用什么护肤品比较好| 琳琅是什么意思| gms是什么意思| 流鼻血是什么原因引起的| 心下痞是什么意思| 头晕为什么做眼震检查| 韭菜籽配什么壮阳最猛| 做喉镜能检查出什么病| 归脾丸治什么病| 喝中药不能吃什么食物| 什么是犯太岁| 蝎子泡酒有什么功效| 尿潜血阳性是什么意思| zbc什么意思| 腰椎间盘膨出是什么意思| 手掌像什么| 隐患是什么意思| 牛肉可以炒什么菜| 爱是什么偏旁| 客家人是什么意思| 妇科炎症吃什么药最好| cd8高是什么原因| 胃疼吃什么药最有效| 什么食用油最好最健康| 茶叶有什么功效| 寿元是什么意思| 2024年属什么年| 叻叻是什么意思| 什么的地方| 滞是什么意思| 催经吃什么药| 什么食物含有维生素b| 盆腔积液用什么药| mb是什么意思| 女人腰疼是什么妇科病| ct和拍片有什么区别| 官宣是什么意思| 空调出现pl是什么意思| 发好人卡是什么意思| 属猴的和什么属相最配| 面黄肌瘦是什么意思| 一月23号是什么星座| xxs是什么意思| 变化无常的意思是什么| 脚为什么会痒越抓越痒| 什么酒好喝| ecc是检查什么的| 柠檬苦是什么原因| 一惊一乍是什么意思| 98年属虎的是什么命| 为什么辰不能见亥| 处暑吃什么| 旺是什么生肖| 17088a是什么尺码男装| 双重否定句是什么意思| 正痛片别名叫什么| 天地银行是什么意思| 什么是肛瘘| 呵呵的含义是什么意思| 生物工程是什么专业| a型血和o型血生的孩子是什么血型| 青岛有什么特产| 碟鱼头是什么鱼| 噤若寒蝉是什么意思| 宁五行属什么| 南宁有什么特产| 佛龛是什么| 梦见抬死人是什么意思| 脾胃不好可以吃什么水果| 转是什么意思| 挑灯夜战是什么意思| 胸口长痘痘是什么原因| 小孩尿味道很重是什么原因| 肿瘤手术后吃什么好| 中元节注意什么| 什么是三重一大事项| 颈动脉斑块吃什么药| 维吾尔族是什么人种| 生长激素由什么分泌| 足癣用什么药最快好| 同居是什么意思| 口渴是什么病的症状| 帝女花讲的是什么故事| 强化是什么意思| 冷藏是什么意思| 腺体是什么| 为什么肝区隐隐作痛| 唐伯虎是什么生肖| emo是什么意思| 吃苦瓜有什么好处| 白内障什么原因造成的| 我操是什么意思| 脖子肿大是什么病的症状| 荷叶茶有什么功效和作用| 下面痒用什么清洗最好| 泰国有什么好玩| 河北古代叫什么| 梦游为什么不能叫醒| 男人的精子对女人有什么好处| 超敏c反应蛋白高是什么意思| 辛辣是什么意思| 什么钓鱼愿者上钩| 中线是什么意思| 低聚木糖是什么| 公安局局长什么级别| 指检是什么| 燕窝是什么做成的| 左下眼皮跳是什么原因| 三点水加四读什么| hcc是什么意思| 短装是什么意思| 肾气虚吃什么药| 夹不住尿是什么原因| 妈妈的妹妹应该叫什么| 省委常委是什么级别| ab型血可以输什么血| 金戊念什么| 吃东西没有味道是什么原因| 心律不齐吃什么药最快| 肩膀上有痣代表什么| 吃菱角有什么好处| 白酒不能和什么一起吃| 弛张热常见于什么病| 龙蛇混杂是什么生肖| 985211大学是什么意思| 女人喝什么茶叶最好| 什么食物含钙量最高| 冒菜和麻辣烫有什么区别| 头三个月保胎喝什么汤| 加仓什么意思| 边界清是什么意思| 梦见自己怀孕是什么意思| 指甲变厚是什么原因| 皮疹是什么样子的| 什么叫意识| 吃什么补肾益精| 生不如死是什么生肖| 1月20号什么星座| 氯喹是什么药| 防蓝光眼镜有什么用| 济公原名叫什么| 处女座什么性格| 喉咙有痰吃什么药| 爱情和面包是什么意思| 百度Jump to content

《2017梦想启航》 20170101

From Wikipedia, the free encyclopedia
Saving a ddl file in Oracle SQL Developer
Saving a ddl file in Oracle SQL Developer
百度 桑切斯目前正在准备智利对阵瑞典和丹麦的友谊赛比赛,而俱乐部的工作人员也对于桑切斯在曼联的苦闷感到感到震惊,桑切斯在曼联给人留下了一个不开心,孤独的形象,他经常一个人在食堂里吃饭。

In the context of SQL, data definition or data description language (DDL) is a syntax for creating and modifying database objects such as tables, indices, and users. DDL statements are similar to a computer programming language for defining data structures, especially database schemas. Common examples of DDL statements include CREATE, ALTER, and DROP. If you see a .ddl file, that means the file contains a statement to create a table. Oracle SQL Developer contains the ability to export from an ERD generated with Data Modeler to either a .sql file or a .ddl file.

History

[edit]

The concept of the data definition language and its 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 declaring tables, columns, data types and constraints. SQL-92 introduced a schema manipulation language and schema information tables to query schemas.[2] 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.

Structured Query Language (SQL)

[edit]

Many data description languages use a declarative syntax to define columns and data types. Structured Query Language (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 elements. These statements can be freely mixed with other SQL statements, making the DDL not a separate language.

CREATE statement

[edit]

The create command is used to establish a new database, table, index, or stored procedure.

The CREATE statement in SQL creates a component in a relational database management system (RDBMS). In the SQL 1992 specification, the types of components that can be created are schemas, tables, views, domains, character sets, collations, translations, and assertions.[2] Many implementations extend the syntax to allow creation of additional elements, such as indexes and user profiles. Some systems, such as PostgreSQL and SQL Server, allow CREATE, and other DDL commands, inside a database transaction and thus they may be rolled back.[3][4]

CREATE TABLE statement

[edit]

A commonly used CREATE command is the CREATE TABLE command. The typical usage is:

CREATE TABLE [table name] ( [column definitions] ) [table parameters]

The column definitions are:

  • A comma-separated list consisting of any of the following
  • 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

An example statement to create a table named employees with a few columns is:

CREATE TABLE employees (
    id            INTEGER       PRIMARY KEY,
    first_name    VARCHAR(50)   not null,
    last_name     VARCHAR(75)   not null,
    mid_name      VARCHAR(50)   not null,
    dateofbirth   DATE          not null
);

Some forms of CREATE TABLE DDL may incorporate DML (data manipulation language)-like constructs, such as the CREATE TABLE AS SELECT (CTaS) syntax of SQL.[5]

DROP statement

[edit]

The DROP statement destroys an existing database, table, index, or view.

A DROP statement in SQL removes a component 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 is:

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 removes the entire table from the database.

ALTER statement

[edit]

The ALTER statement modifies 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 is:

ALTER TABLE sink ADD bubbles INTEGER;
ALTER TABLE sink DROP COLUMN bubbles;

TRUNCATE statement

[edit]

The TRUNCATE statement is used to delete all data from a table. It's much faster than DELETE.

TRUNCATE TABLE table_name;

Referential integrity statements

[edit]

Another type of DDL sentence in SQL is 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 in a CREATE TABLE or an ALTER TABLE sentence;

Other languages

[edit]

See also

[edit]

References

[edit]
  1. ^ Olle, T. William (1978). The Codasyl Approach to Data Base Management. Wiley. ISBN 0-471-99579-7.
  2. ^ a b "Information Technology - Database Language SQL". SQL92. Carnegie Mellon. Retrieved 12 November 2018.
  3. ^ Laudenschlager, Douglas; Milener, Gene; Guyer, Craig; Byham, Rick. "Transactions (Transact-SQL)". Microsoft Docs. Microsoft. Retrieved 12 November 2018.
  4. ^ "PostgreSQL Transactions". PostgreSQL 8.3 Documentation. PostgreSQL. 7 February 2013. Retrieved 12 November 2018.
  5. ^ Allen, Grant (2010). The Definitive Guide to SQLite. Apresspod. Mike Owens (2 ed.). Apress. pp. 90–91. ISBN 9781430232254. Retrieved 2025-08-05. The create table statement has a special syntax for creating tables from select statements. [...]: [...] create table foods2 as select * from foods; [...] Many other databases refer to this approach as CTaS, which stands for Create Table as Select, and that phrase is not uncommon among SQLite users.
[edit]
物极必反什么意思 痛风可以喝什么酒 升天是什么意思 九五年属什么生肖 咳嗽恶心干呕是什么原因引起的
血脂挂什么科 为什么口水是臭的 炎症是什么原因引起的 低脂高钙牛奶适合什么人群 干燥综合症吃什么药
为什么放生泥鳅果报大 黑色记号笔用什么能擦掉 a货翡翠是什么意思 女人吃什么越来越年轻 脚底疼挂什么科
有时候会感到莫名的难过是什么歌 小便出血是什么原因 同房子宫疼痛什么原因 o型血和ab型血生的孩子是什么血型 浮沉是什么意思
后背刺痛什么原因引起的aiwuzhiyu.com 男性夜间盗汗是什么原因hcv8jop1ns7r.cn 农历10月19日是什么星座hcv9jop2ns0r.cn 凉虾是什么hcv9jop4ns2r.cn 柳絮吃了有什么好处hcv9jop0ns6r.cn
来姨妈喝什么比较好hcv8jop3ns2r.cn 民族是什么意思sanhestory.com 床品是什么意思zhongyiyatai.com 血液属于什么组织hcv8jop1ns3r.cn 超声波是什么意思hcv8jop0ns9r.cn
应无所住而生其心是什么意思hcv8jop7ns3r.cn 什么高什么下hcv9jop2ns8r.cn 数不胜数的胜是什么意思hcv8jop1ns8r.cn 长红疹是什么原因hcv9jop0ns7r.cn 牛皮癣用什么药膏hcv8jop5ns3r.cn
什么水果含维生素bhcv8jop7ns9r.cn 心机重的人弱点是什么hcv9jop7ns5r.cn 舌系带长有什么影响吗hcv8jop9ns5r.cn 蟋蟀是靠什么发声的qingzhougame.com 七月是什么季节bfb118.com
百度