Книги автора: Learning GNU Emacs, 3rd Edition
/ Книги автора: Learning GNU Emacs, 3rd Edition
/ Книги автора: Learning GNU Emacs, 3rd Edition
/ Книги автора: Learning GNU Emacs, 3rd Edition
Искусство программирования для UnixThe Art of Unix Programming
/ Книги автора: Learning GNU Emacs, 3rd Edition
Книга: Learning GNU Emacs, 3rd Edition
9.7.2.2 Editing mode
9.7.2.2 Editing mode
You can also put a buffer directly into SQL mode with M-x sql-mode. This provides some assistance for motion and composition of SQL statements, but mostly it's there to let you build complex statements and then ship them to the interactive buffer for execution. Table 9-10 shows how to send various segments of the buffer to the database.
Table 9-10. SQL mode send commands
Keystroke | Command name | Action |
---|---|---|
C-c C-c | sql-send-paragraph | Send the paragraph the cursor is on. A paragraph is defined by the particular database client. For the sql-mysql process, for example, a paragraph begins with a statement like select or update and ends with a semicolon. Any number of lines can intervene. |
C-c C-r | sql-send-region | Send the marked region. |
C-c C-b | sql-send-buffer | Send the entire buffer. |
The output of all of these send commands shows up in your interactive buffer. Nothing changes in the editing buffer so you should feel free to experiment. That's what these modes are here for!
Оглавление статьи/книги
Похожие страницы
- 1.3 A Word About Modes
- Chapter 7. Simple Text Formatting and Specialized Editing
- 7.4.3 Editing While Text Is Hidden
- 2.5 Editing Tricks and Shortcuts
- 1.5.3 The Mode Line
- 3.2.4 Recursive Editing
- 7.6.2 Editing in Picture Mode
- 1.1.4. Model Explorer - навигатор модели
- Editing Printer Settings
- Editing httpd.conf
- Листинг 14.2. Использование параметра XMLWriteMode при сохранении объекта ADO.NET DataSet
- Entering and Exiting PHP Mode