摘要: 表的操作: 创建表: create table 表名 ( 列名 属性; ); 查看表结构: desc 表名; 表重命名: rename 原表名 to 新表名; 删除表: drop 表名; 表的字段操作: 增: alter table 表名 add 列名 列的属性; --单列操作 alter tabl 阅读全文
posted @ 2017-05-24 20:50 游戏鼻祖 阅读(1564) 评论(0) 推荐(1)
摘要: 存储过程创建语法: create or replace procedure 存储过程名(param1 in type,param2 out type) as 变量1 类型(值范围); 变量2 类型(值范围); Begin Select count(*) into 变量1 from 表A where列 阅读全文
posted @ 2017-05-24 20:12 游戏鼻祖 阅读(484) 评论(0) 推荐(0)