存储过程可以包含自己的身体内部DML和DDL逻辑,但是所存储的程序本身装配在DDL分类,按以下定义:
数据定义语言(DDL)语句用于定义 数据库结构或模式。一些例子:
1. CREATE: To create objects in the database
2. ALTER: Alters the structure of the database
3. DROP: Delete objects from the database
4. TRUNCATE: Remove all records from a table, including all spaces allocated for the records are removed
5. COMMENT: Add comments to the data dictionary
6. RENAME: Rename an object
数据操纵语言(DML)语句用于模式对象内管理数据。一些例子:
1. SELECT: Retrieve data from the a database
2. INSERT: Insert data into a table UPDATE - updates existing data within a table
3. DELETE: Deletes all records from a table, the space for the records remain
4. CALL: Call a PL/SQL or Java subprogram
5. EXPLAIN PLAN: Explain access path to data
6. LOCK TABLE: Control concurrency
的存储过程创建* *使用DDL,但可以_contain_ DML和DDL –
同意你的观点,但你有没有指示任何链接或文件? –
所有DBMS的所有手册 –