`
编程小三
  • 浏览: 10656 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
---开始编写分页的存储过程 ---编写一个包 create or replace  package testpackage as type test_curror is ref cursor; end testpackage; 这个包和存储过程要分开执行。要不会提示错误 create or replace procedure fenye (      tableName in varchar2,        Pagesize in number,        pageNow in number,        myrows out number,----总记录数        mypag ...
首先写一个存储过程,这里演示一个小的demo而已 例子: declare ----定义变量 v_name varchar2(30); v_sal number(7,2); begin ----执行部分 select ename,sal into v_name,v_sal from emp where empno=&no; ---控制台输出 dbms_output.put_line('username:'||v_name || ' 工资:'||v_sal); ---异常处理 exception when no_data_found then dbms_output.put_line(' ...
----创建一个存储过程 首先创建一个数据库 create table mytest(name varchar2(30),passwd varchar2(30)); ----要是实现的功能为使用存储过程往mytest表里插入一条数据 create procedure sp_prol is create or replace procedure sp_prol1 is begin insert into mytest('小史','xiaoshi'); end; / ----调用一个存储过程 exec sp_prol; ----注释:or replace表示如果有了一个存储过程,则替换之 ...
之前在做项目的时候。用过java写的截取字符串的功能。这次发现。原来样式也可以实现这中功能~~ <style> .title { width:200px; white-space:nowrap;    word-break:keep-all;    overflow:hidden;    text-overflow:ellipsis; } </style> 写CSS样式,然后长度定义为200px当超过了之后就会以省略号显示 <div class=title>客户端解决标题显示太长省略多余部分并加省略号的样式</div>
有哪位大师能告诉题目那个怎么实现,最好有个DEMO最好,,
 1、配置ODBC:开始→设置→控制面板→治理工具→数据源(ODBC)→   添加一个系统DSN:   数据源名称(自己设置。好记就行如:xxx)   服务名称(Oracle主机字符串:可以)   用户名称(Oracle用户名:如user1,可以使用test测试一下是否能连通,若有密码的则输入密码)     2、打开MicroSoft Excel      3、数据(D)→获取外部数据(D)→新建数据库查询(N)→       4、选择数据源:       5、输入user1用户的密码(pass1)→OK→       6、选择要导入的表、列→下一步→     7、OK   
左边右键 ,import --->general-->existing Projects into Workspace 你的项目工程里面。则直接在workplace里面找,如果没有点浏览查找位置就OK了。。
以例子说明问题: 创建一个表: create table hek_test_in(        pid integer primary key,        ndate date,        nnote varchar2(50) ) 然后插入数据 insert into hek_test_in values(1,to_date('20100708','yyyymmdd'),'xiaoshi');--这个是添加时间需要转化类型的写法,用到to_date对数据进行转换才可以添加成功
准备工作:首先得创建一个数据库。这个没创建库,将会在第创建用户的时候没法进行! 1:创建一个表空间并创建用户 create tablespace hg     ---hg为表空间名,下面创建用户的时候还会用到 logging datafile 'D:\oracle10\product\10.2.0\oradata\orcl\hg.dbf'   --这里一定是你创建数据库的目录。要不报错!! size 20m    autoextend on next 32m maxsize 2048m extent management local; 2:create user hg identifie ...
Global site tag (gtag.js) - Google Analytics