设置sqlplus中的Edit编辑模式
可以将define _EDITOR=
编辑当前SQLPLUS 缓冲区内的SQL 语句
如ed 就是缩写,会使用我们环境变量指定的编辑器来编辑缓冲区内的SQL 语句,当然是SQLPLUS 的缓冲区。我们完全可以证明,,在我们没有连接的数据库的候,也可以使用EDIT来编辑。如果我们想修改默认的编辑器,如改为vi
SQL> define _EDITOR
DEFINE _EDITOR = "ed" (CHAR)
SQL> define _EDITOR='vi'
SQL> define _EDITOR
DEFINE _EDITOR = "vi" (CHAR)
可以将define _EDITOR='vi'这句话写在sqlplus 的启动配置脚本中。启动脚本为Oracle_home/sqlplus/admin/glogin.sql 。这个脚本在SQLPLUS 一启动的时候自动的调用,而不是在连接数据库的时候调用。运行完这个脚本以后,数据库会再运行oracle_home/dbs/login.sql 脚本,所以如果两个脚本都有相同的描述,以login.sql 为主。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)
