上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 1.建表create table zemployees( eid number(38), -- 主键ID ename varchar2(50), -- 姓名 esex varchar2(50), -- 性别 eage number(38), -- 年龄 eannualincome number(38), -- 年收入 ejob varchar2(50), -- 工作 eeducate varchar2(50) -- 受教育程度)2.建挖掘结构 输入年龄,预测 年收入 和 受教育程度。3.浏览4.如何把 我浏览后的 结果 通过 web 的方式 显示呢?(... 阅读全文
posted @ 2011-01-21 18:16 emmy 阅读(496) 评论(2) 推荐(2) 编辑
摘要: with member mydate as now()select {[Measures].[SaleAmounts]} on 0,{StrToMember("[时间].[日].&[" + Format(DateAdd('d',-1,CDate(mydate)), "yyyy年MM月dd日") + "]")} on 1from [多维数据集]我是参考这篇文章的:http://www.cnblogs.com/benzhang/archive/2010/11/24/1886421.html 阅读全文
posted @ 2011-01-19 13:58 emmy 阅读(265) 评论(0) 推荐(1) 编辑
摘要: Oracle 随机获取N条数据 当我们获取数据时,可能会有这样的需求,即每次从表中获取数据时,是随机获取一定的记录,而不是每次都获取一样的数据,这时我们可以采取Oracle内部一些函数,来达到这样的目的1) select * from (select * from tablename order by sys_guid()) where rownum N; 2) select * from (select * from tablename order by dbms_random.value) where rownum N; 3) select * from (select * from 阅读全文
posted @ 2011-01-12 12:07 emmy 阅读(20867) 评论(1) 推荐(1) 编辑
摘要: declareRoomID Room.RoomID%Type;RoomName Room.RoomName%Type;cursor crRoom is select RoomID,RoomName from Room;beginopen crRoom;loop;fetch crRoom into RoomID,RoomName;exit when crRoom%notFound;end loop;close crRoom; end;3.1在游标使用入口参数 在SQL语句的Where 子句中恰当使用 相关语句简化逻辑,本来需要使用两个游标,把相关入口参数放入到SQL语句的Where 子句中,一个 阅读全文
posted @ 2011-01-10 11:02 emmy 阅读(670) 评论(0) 推荐(0) 编辑
摘要: oracle的cursor的介绍一 概念 游标是SQL的一个内存工作区,由系统或用户以变量的形式定义。游标的作用就是用于临时存储从数据库中提取的数据块。在某些情况下,需要把数据从存放在磁盘的表中调到计算机内存中进行处理,最后将处理结果显示出来或最终写回数据库。这样数据处理的速度才会提高,否则频繁的磁盘数据交换会降低效率。 二 类型 Cursor类型包含三种: 隐式Cursor,显式Cursor和Ref Cursor(动态Cursor)。 1.隐式Cursor: 1)对于select …into…语句,一次只能从数据库中获取到一条数据,对于这种类型的DML Sql语句,就是隐式Cursor 阅读全文
posted @ 2011-01-10 10:40 emmy 阅读(774) 评论(0) 推荐(1) 编辑
摘要: 任务可使用的 Microsoft 算法预测离散属性。 例如,预测目标邮递活动的收件人是否会购买某个产品。Microsoft 决策树算法 Microsoft Naive Bayes 算法 Microsoft 聚类分析算法 Microsoft 神经网络算法(Analysis Services – 数据挖掘) 预测连续属性。例如,预测下一年的销售额。Microsoft 决策树算法 Microsoft 时序算法 预测顺序。例如,执行公司网站的点击流分析。Microsoft 顺序分析和聚类分析算法 查找交易中常见项的组。例如,使用市场篮分析来建议客户购买其他产品。Microsoft 关联算法 Micro 阅读全文
posted @ 2011-01-09 21:18 emmy 阅读(500) 评论(0) 推荐(0) 编辑
摘要: oracle的substr函数的用法取得字符串中指定起始位置和长度的字符串substr(string,start_position,[length])如:substr('Thisisatest',6,2)wouldreturn'is'substr('Thisisatest',6)wouldreturn'isatest'substr('TechOnTheNet',-3,3)wouldreturn'Net'substr('TechOnTheNet',-6,3)wouldreturn 阅读全文
posted @ 2011-01-08 22:12 emmy 阅读(112632) 评论(4) 推荐(8) 编辑
摘要: oracle只能传2个参数-concat(值1,值2)拼字符串concat(值1,值2)name := concat('a','b');name最后为 abconcat(值1,值2) oracle 只允许2个参数意思是 把值1和值2 拼成一个字符串。 阅读全文
posted @ 2011-01-08 21:44 emmy 阅读(988) 评论(0) 推荐(2) 编辑
摘要: Cube增量更新1.建表:-- 用户表create table zuserinfo(zid int null,zname varchar(50) null,zpid int null)-- 订单表create table zorderinfo(zid int null,zuid int null,zproductname varchar(50) null,cdate date null)-- 增量表create table zAddinfo(zid int null,zuid int null,zproductname varchar(50) null,cdate date null)-- . 阅读全文
posted @ 2011-01-07 11:23 emmy 阅读(1100) 评论(0) 推荐(2) 编辑
摘要: oracle转换数字 to_number( ) as month_Id to_char(trunc( ),'yyyymm') to_date( ),'mm' to_char( ),'yyyymmdd' rmr.time_idto_number(to_char(trunc(to_date(to_char(rmr.time_id),'yyyymmdd'),'mm'),'yyyymm')) as month_Id 阅读全文
posted @ 2011-01-06 14:24 emmy 阅读(1078) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页