function F_ReturnDescription(varID in varchar2) return varchar2 is

    numDataCount number(12);
mytable ly_familyproperty%rowtype;
begin select count(1)
into numDataCount
from ly_familyproperty t
where t.id = varID;
if numDataCount = 0 then
return '';
end if;
select * into mytable from ly_familyproperty where id = varID;
/*
1:公积金;2:社保;3:企业所得税缴纳情况;4:工商登记情况;5:个人所得税缴纳情况;
6:非居住类房屋情况;7:机动车辆登记情况;8:其他财产
*/
if mytable.propertype = '' then
return '月缴存额:' || mytable.MONEY || '元';
elsif mytable.propertype = '' then
return '月缴存额:' || mytable.MONEY || '元';
elsif mytable.propertype = '' then
return '月缴纳基数:' || mytable.MONEY || '元';
elsif mytable.propertype = '' then
return '工商主体名称:' || mytable.BUSINESS_TITLE || ';' || '登记时间:' || to_char(mytable.CHECK_TIME,
'yyyy-mm-dd') || ';' || '出资额:' || mytable.MONEY || '万元';
elsif mytable.propertype = '' then
return '月缴纳基数:' || mytable.MONEY || '元';
elsif mytable.propertype = '' then
return '房屋地址:' || mytable.ADDRESS || ';建筑面积:' || mytable.BUILDAREA || ';发证时间:' || to_char(mytable.CHECK_TIME,
'yyyy-mm-dd') || ';产权证号:' || mytable.PRONUM;
elsif mytable.propertype = '' then
return '品牌:' || mytable.brand || ';排量:' || mytable.EXHAUST_VOLUME || ';车辆使用性质:' || mytable.USE_NATURE || ';登记时间:' || to_char(mytable.CHECK_TIME,
'yyyy-mm-dd');
elsif mytable.propertype = '' then
return mytable.business_title;
else
return '';
end if; end F_ReturnDescription;

Oracle中table数据数据类型的更多相关文章

  1. oracle中的数据对象

    oracle中的数据对象有表.视图.索引.序列等 表的相关操作 1.创建表 方式一: 方式二:create table person( create table person1 id number(1 ...

  2. MyBatis在Oracle中插入数据并返回主键的问题解决

    引言:  在MyBatis中,希望在Oracle中插入数据之时,同一时候返回主键值,而非插入的条数... 环境:MyBatis 3.2 , Oracle. Spring 3.2   SQL Snipp ...

  3. 在Oracle中更新数据时,抛出:ORA-01008: not all variables bound

    在Oracle中更新数据时,抛出了一个 :ORA-01008 not all variables bound, 我的理解是不是所有的变量/参数都有边界,不懂: 后来知道了,原来是“不是所有变量/参数都 ...

  4. Sqoop_具体总结 使用Sqoop将HDFS/Hive/HBase与MySQL/Oracle中的数据相互导入、导出

    一.使用Sqoop将MySQL中的数据导入到HDFS/Hive/HBase watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYWFyb25oYWRvb3A=/ ...

  5. Elasticsearch 2.3.2 从oracle中同步数据

    Elasticsearch 2.3.2 从oracle中同步数据   1         数据批量导入-oracle 采用 elasticsearch-jdbc 插件 安装.版本需要ES版本一致 最新 ...

  6. Oracle中新建数据表的两种方法

    首发微信公众号:SQL数据库运维 原文链接:https://mp.weixin.qq.com/s?__biz=MzI1NTQyNzg3MQ==&mid=2247485212&idx=1 ...

  7. oracle中的数据读取与查找

    数据读取 首先数据块读入到Buffer Cache中,并将其放在LRU(Last Recently Used)链表的MRU(Most Recently Used)端,当需要再次访问该块时可以直接从bu ...

  8. Oracle中读取数据一些原理研究

    文章很多摘录了 http://blog.163.com/liaoxiangui@126/blog/static/7956964020131069843572/ 同时基于这篇文章的基础上,补充一些学习要 ...

  9. 2018.7.23 oracle中的CLOB数据类型

    Oarcle中的LOB类型 1.在Oracle中,LOB(Large Object,大型对象)类型的字段现在用得越来越多了.因为这种类型的字段,容量大(最多能容纳4GB的数据),且一个表中可以有多个这 ...

随机推荐

  1. 动态设置热区coords的坐标

    window.onresize = adjuest; function adjuest(){ var picw = $(".imgbox img").width(); var pi ...

  2. vs2015 web项目加载失败解决办法

    1.问题 ---------------------------Microsoft Visual Studio---------------------------Web 应用程序项目 XXWeb 已 ...

  3. Linux基础之-正则表达式(grep,sed,awk)

    一. 正则表达式 正则表达式,又称规则表达式.(英语:Regular Expression,在代码中常简写为regex.regexp或RE),计算机科学的一个概念.正则表达式是对字符串操作的一种逻辑公 ...

  4. Android 文件的可读可写

    文件流形式的保存,获取: 设立文件的私有,可读,可写,公开: 效果图: /data/data中文件夹: 新建一个项目测试文件: 得到data/data,查看文件的特性:

  5. 【Machine Learning】监督学习、非监督学习及强化学习对比

    Supervised Learning Unsupervised Learning Reinforced Learning Goal: How to apply these methods How t ...

  6. mac安装brew, bower

    Mac安装Brew 安装命令如下:curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/loc ...

  7. 【Leetcode】【Medium】Search for a Range

    Given a sorted array of integers, find the starting and ending position of a given target value. You ...

  8. 【转】Java中的多线程你只要看这一篇就够了

    https://www.jianshu.com/p/40d4c7aebd66 引 如果对什么是线程.什么是进程仍存有疑惑,请先Google之,因为这两个概念不在本文的范围之内. 用多线程只有一个目的, ...

  9. July 13th 2017 Week 28th Thursday

    No dream is too big, and no dreamer is too small. 梦想再大也不嫌大,追梦的人再小也不嫌小. Hold on to your dreams, but b ...

  10. web 应用程序转化为多租户 SaaS 解决方案

    web 应用程序转化为多租户 SaaS 解决方案 https://www.ibm.com/developerworks/cn/cloud/library/cl-multitenantsaas/inde ...