2015年10月27日

什么是动态sql

摘要: 什么是动态sql?1,根据用户输入参数等才能确定的语句,根据用户输入参数增删改查; 2,解决PL/SQL中不支持DDL语句的问题 阅读全文

posted @ 2015-10-27 21:08 kebizhanmushi 阅读(820) 评论(0) 推荐(0) 编辑

如何使用动态游标?

摘要: 阅读全文

posted @ 2015-10-27 19:55 kebizhanmushi 阅读(114) 评论(0) 推荐(0) 编辑

存储过程

摘要: --存储过程--pl/sql过程参数有IN/OUT/INOUT三种类型,其中IN类型可以被过程体引用,但不能改写值;OUT类型不可被过程体引用,但可改写值;INOUT既可以被过程体引用,又可以改写值.在调用inout类型时,调用过程插入参数时,不能直接用常量。必须用变量。这样才能接收out返回来的值... 阅读全文

posted @ 2015-10-27 17:04 kebizhanmushi 阅读(106) 评论(0) 推荐(0) 编辑

触发器

摘要: create sequence seqrole start with 4create or replace trigger truserrolsinsertbefore inserton userrolesfor each rowbegin if inserting then se... 阅读全文

posted @ 2015-10-27 16:31 kebizhanmushi 阅读(111) 评论(0) 推荐(0) 编辑

包 过程 函数

摘要: create or replace package haha1is function fndiv(a int,b int) return float; procedure add(a int,b int);end;create or replace package body haha1is fu... 阅读全文

posted @ 2015-10-27 16:11 kebizhanmushi 阅读(100) 评论(0) 推荐(0) 编辑

PowerDesigner设计数据库

摘要: PowerDesigner设计数据库表格子表的主键pk会在父表里自动生成外键fk创建E-R图:客户表生成----》账户表生成------》存款表和交易表 阅读全文

posted @ 2015-10-27 15:11 kebizhanmushi 阅读(137) 评论(0) 推荐(0) 编辑

PowerDesigner15在生成SQL时报错Generation aborted due to errors detected during the verification of the mod

摘要: PowerDesigner15在生成SQL时报错Generation aborted due to errors detected during the verification of the mod分类:PowerDesigner2012-05-19 08:129260人阅读评论(2)收藏举报ge... 阅读全文

posted @ 2015-10-27 15:02 kebizhanmushi 阅读(238) 评论(0) 推荐(0) 编辑

创建银ATM存取款数据库

摘要: 一个客户信息可以有多个账户信息,且各个账户是独立的一个账户可以有多种存款类型,各个存款类型是独立的一个账户有多个交易信息,交易信息是关联的(即一个账户在某个交易日期,他的交易金额是多少,交易类型是什么,是相互有关联的)CREATE TABLE userInfo --用户信息表( customerI... 阅读全文

posted @ 2015-10-27 10:51 kebizhanmushi 阅读(796) 评论(0) 推荐(0) 编辑

2015年10月26日

设置编码规则

摘要: 阅读全文

posted @ 2015-10-26 23:48 kebizhanmushi 阅读(107) 评论(0) 推荐(0) 编辑

乘法口诀

摘要: "); } %> 第二种: "); } } %> 阅读全文

posted @ 2015-10-26 23:20 kebizhanmushi 阅读(101) 评论(0) 推荐(0) 编辑

导航