官术网_书友最值得收藏!

  • Oracle SQL Developer
  • Ajith Narayanan
  • 295字
  • 2021-07-16 09:39:05

Editing database objects – putting context menus to work

Each object in the Connections navigator has a context menu associated with it. Each context menu invokes a dialog that supports SQL commands that range from a single, simple command (such as DROP TABLE HR.COUNTRIES) to a collection of basic and complex commands. Throughout the chapter, we have stated that any of the activities that we're performing uses a UI as an interface for the underlying SQL command. Certainly, typing the drop table command is faster than selecting the items and invoking the dialog, assuming of course that you know the syntax. In this section, we'll briefly single out a few of these context menus.

Editing objects

Each of the Create dialogs has a matching Edit dialog. Most of the Edit dialogs directly match the object's Create dialog. If you invoke any Edit dialog, the DDL tab or node is initially empty, as it was when you first invoked the Create dialog. As soon as you change any of the properties, the DDL tab or node is populated with the SQL to reflect the changes. For many objects, such as triggers or views, editing the object results in a Create or Replace… command. For other objects, such as Sequences or Tables, editing the objects results in an Alter… command.

Consider the Edit Table dialog as shown in the following screenshot. The dialog is in the form of the advanced Create table dialog. Notice that you can no longer switch the table type nor create partitions. While you can certainly add or delete columns, you cannot reorder them (unless you drop and recreate them). You'll find that other database rules, such as reducing the column width, are also enforced if the column already contains data.

主站蜘蛛池模板: 交口县| 灵宝市| 股票| 调兵山市| 东明县| 永嘉县| 洪泽县| 封丘县| 肥西县| 简阳市| 鄂伦春自治旗| 新乡市| 新乐市| 玉树县| 白水县| 昭苏县| 斗六市| 乡宁县| 贵阳市| 漳州市| 富锦市| 平南县| 六枝特区| 上饶县| 繁昌县| 法库县| 城口县| 北京市| 揭东县| 醴陵市| 邓州市| 紫金县| 桂阳县| 庄浪县| 岳西县| 和顺县| 探索| 普洱| 吉水县| 林西县| 岳阳市|