04 2014 档案

摘要:创建DataBaseAccess引用库下面包括DBConnectionString.cs,DBType.cs ,SysName.cs 三个类DBConnectionString:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace DataBaseAccess{ /// /// 数据库类型访问连接 /// public class DBConnectionString { ... 阅读全文
posted @ 2014-04-10 20:15 蜜雪粮液 阅读(11103) 评论(0) 推荐(1) 编辑
摘要:客户端实现:loginnamespace LoginApp{ partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(boo... 阅读全文
posted @ 2014-04-09 10:27 蜜雪粮液 阅读(841) 评论(0) 推荐(0) 编辑
摘要:首先创建两个结构相同的表-- Create tablecreate table TABLE_TEMP( userid NUMBER not null, username NVARCHAR2(50), userno NVARCHAR2(60), cardid NVARCHAR2(18), createdate DATE, redate DATE, month VARCHAR2(6), amount NUMBER)tablespace USERS pctfree 10 initrans 1 maxtrans 255 st... 阅读全文
posted @ 2014-04-08 18:06 蜜雪粮液 阅读(1449) 评论(0) 推荐(0) 编辑
摘要:1.创建数据库表:-- Create tablecreate table TEST_TABLE( userid NUMBER not null, username NVARCHAR2(50), userno NVARCHAR2(60), cardid NVARCHAR2(18), createdate DATE, redate DATE)tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage ( initial 64 next 8 minextents 1... 阅读全文
posted @ 2014-04-07 16:10 蜜雪粮液 阅读(905) 评论(0) 推荐(0) 编辑
摘要:Tb_People 表信息: id uname era amount plushtime 1000031 张亮 中年 100000 201404050908 1000032 张亮 中年 100000 201404050913 1000033 天天 年轻 233233 201404050918 1000034 天天 年轻 233233 201404050923 1000035 kimi 年轻 455631 201404050933 1000036 kimi 年轻 455631 201404050938 --分析出每5分钟内有多少人乘车 --时间转化秒不用转化 初始刷卡时间值是2014040... 阅读全文
posted @ 2014-04-05 23:54 蜜雪粮液 阅读(3035) 评论(1) 推荐(1) 编辑
摘要:1)安装Oracle 12c 64位2)安装32位的Oracle客户端( instantclient-basic-nt-12.1.0.1.0)下载instantclient-basic-nt-12.1.0.1.0.zip (一定得是32位的,不要下错了版本,Oracle官网有下载),将其解压至Ora... 阅读全文
posted @ 2014-04-05 16:40 蜜雪粮液 阅读(15989) 评论(1) 推荐(1) 编辑
摘要:一张表Tb_Studentinsert into [Tb_Student] values('001','姜子牙','语文',80);insert into [Tb_Student] values('001',姜子牙','数学',70);insert into [Tb_Student] values('001','姜子牙','英语',90);insert into [Tb_Student] values('002','娜吒',&# 阅读全文
posted @ 2014-04-02 23:06 蜜雪粮液 阅读(430) 评论(0) 推荐(0) 编辑
摘要:merge into dbo.ak_SloteCardTimes a using(select RecordID,CardNO,SloteCardTime from dbo.Tb_CardDate b ) c on(a.RecordID=c.RecordID)when matched then update set a.CardNO=c.CardNO ,a.SloteCardTime=c.SloteCardTimewhen not matched then insert(RecordID,CardNO,SloteCardTime)values(c.RecordID,c.CardNO,c.Sl. 阅读全文
posted @ 2014-04-01 14:48 蜜雪粮液 阅读(908) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示