搜索到与相关的文章
数据库相关

Add/Delete/Update

首先是数据访问层的代码:1usingSystem;2usingSystem.Data;3usingSystem.Data.SqlClient;4usingSystem.Configuration;56namespaceWebTest.Common7{8/**////9///COperator的摘要说明。10///11publicclassCOperator12{13publicCOperator()14{15//16/

系统 2019-08-12 01:54:04 2481

Android

【Android Developers Training】 14. 序言:管

注:本文翻译自Google官方的AndroidDevelopersTraining文档,译者技术一般,由于喜爱安卓而产生了翻译的念头,纯属个人兴趣爱好。原文链接:http://developer.android.com/training/basics/activity-lifecycle/index.html当一个用户使用你的应用,或者返回,或者退出时,Activity的实例会在它的生命周期内对应地切换到相应的状态。例如:当你的Activity第一次启动时

系统 2019-08-12 01:53:23 2481

数据库相关

SQL 时间函数详解

SQLServer时间日期函数详解,SQLServer,时间日期,1.当前系统日期、时间selectgetdate()2.dateadd在向指定日期加上一段时间的基础上,返回新的datetime值例如:向日期加上2天selectdateadd(day,2,'2004-10-15')--返回:2004-10-1700:00:00.0003.datediff返回跨两个指定日期的日期和时间边界数。selectdatediff(day,'2004-09-01','

系统 2019-08-12 01:53:10 2481

数据库相关

Binary Tree Level Order Traversal II

问题:输出二叉树的每一行的结点,从叶子到根/***Definitionforbinarytree*structTreeNode{*intval;*TreeNode*left;*TreeNode*right;*TreeNode(intx):val(x),left(NULL),right(NULL){}*};*/classSolution{public:intdfs(TreeNode*root){if(root==NULL)return0;if(root->l

系统 2019-08-12 01:52:22 2481

SqlServer

SQL SERVER 和ACCESS的数据导入导出

代码EXECsp_configure'showadvancedoptions',1GORECONFIGUREGOEXECsp_configure'AdHocDistributedQueries',1GORECONFIGUREGOinsertintoOPENROWSET('Microsoft.Jet.OLEDB.4.0','C:\jlyAccess\jly.mdb';'admin';'',K_jlyMsg)select*fromK_jlyMsginserti

系统 2019-08-12 01:52:14 2481

Oracle

oracle小常识

一、oracle时间类型的处理1、用sql语句把时间2010-10-0109:28:03插入oracle的date类型字段insertinto表名(字段名)values(to_date('2010-10-0109:28:03','yyyy-mm-ddhh24:mi:ss'))2、根据date类型字段查询select*from表名whereto_char(date类型字段,'yyyy-mm-dd')between'2012-03-06'and'2012-03

系统 2019-08-12 01:52:04 2481

Oracle

oracleimp/exp命令使用

转载自:http://www.examda.com/oracle/zhonghe/20091110/103900415.htmlexpcmall/cmall123456@172.18.1.41/ydpwfile=/tmp/cmallDataBase/cmall20110816.dmpowner=cmall;impcmall/cmall@orcl10full=yfile=C:\Users\Administrator\Desktop\database\cmal

系统 2019-08-12 01:51:26 2481

编程技术

GridView动态增加行列

很多时候,我们需要可编辑的表格,来比较方便的进行数据的录入,比如学习成绩的录入。当然这就要求能够动态的增加行,来一次性录入多个学生的信息。现在用ASP.NET中强大的GridView控件就能够达到这样的效果,如下图:下面是具体实现前台代码:<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default"%>

系统 2019-08-12 01:32:52 2481

SqlServer

sql server连接字符串与tcp/ip开启

连接字符串1:DataSource=localhost,1433;UserID=sa;Password=123;InitialCatalog=test;MinPoolSize=1;MaxPoolSize=512;连接字符串2:DataSource=localhost;UserID=sa;Password=123;InitialCatalog=test;SQLSERVER数据库中的TCP/IP如果没有开启,只能用第二句连接字符串,开启都可用。字符串1是通过走

系统 2019-08-12 01:32:41 2481

各行各业

Construction of Primitives in Open Cascade

ConstructionofPrimitivesinOpenCascadeeryar@163.com一、创建基本图元MakingPrimitives将用到如下的类创建基本图元,包括长方体(Box)、楔形体(Wedge)、旋转体(Revol)等。这些类提供Shell和Solid函数来返回实体(solid)和壳(shell)。使用方法都是调用这些类的构造函数,输入相应的参数,直接构造出基本图元。构造函数的参数不同,创建的基本几何实体的形状也会不同。注:所有旋转

系统 2019-08-12 01:32:01 2481