源代码:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SQLTest
{
c...
分类:
Web程序 时间:
2014-08-02 15:35:53
阅读次数:
185
源代码:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SQLTest
{
c...
分类:
数据库 时间:
2014-08-02 15:34:43
阅读次数:
210
查询数据路里的数据数量:
代码:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespac...
分类:
数据库 时间:
2014-08-02 15:33:53
阅读次数:
259
以前用database从来都是直接执行,db.execute()。
今天看公司1.0的源码中又学习了一个逻辑,
SecureSQLiteDatabase db = null;
try {
db = mOpenHelper.openDatabase();
db.beginTransaction();
...
分类:
移动开发 时间:
2014-08-02 05:14:02
阅读次数:
164
Command对象可以分成4种,SqlCommand,OleDbComman,OlbcCommand,OracleComman
属性
说明
CommandType
获取或设置Command对象要执行命令的类型
CommandText
获取或设置要对数据源执行的SQL语句或存储过程名或表名
CommandTimeOut
获取或设置...
分类:
Web程序 时间:
2014-08-01 23:10:42
阅读次数:
294
SD总线通信是基于指令和数据比特流,起始位开始和停止位结束。SD总线通信有三个元素:1.Command:由host发送到卡设备,使用CMD线发送;2.Response:从card端发送到host端,作为对前一个CMD的相应,通过CMD线发送;3.Data:即能从host传输到card,也能从card传输到host,通过data线传输。一、Commands 以下是四种用于控制卡设备的指令类型,每个c...
分类:
其他好文 时间:
2014-08-01 19:46:42
阅读次数:
219
1,使用动态SQL可以在依赖对象不存在时创建子程序。
2,动态SQL主要利用EXECUTE IMMEDIATE语句执行DML,DDL,DCL等语句操作。
3,如果使用了绑定变量,则必须在EXECUTE IMMEDIATE中使用USING子句设置所需要的绑定变量。
4,使用RETURNING或RETURN语句可以接收查询或更新后的返回结果。
5,使用批处理可以...
分类:
数据库 时间:
2014-08-01 13:40:11
阅读次数:
218
以前用command方法执行存储过程增加参数时,总是先用cmd.Parameters.Add方法来设置参数和参数类型,再用Parameters[0].Value来给参数赋值。以前的一个动作代码示例: 1 string strConn = "Data Source=.;Initial Catalog=...
分类:
其他好文 时间:
2014-08-01 13:15:41
阅读次数:
242
不多说,直接上脚本。
# processbar
processbar() {
local current=$1; local total=$2;
local maxlen=80; local barlen=66; local perclen=14;
local format="%-${barlen}s%$((maxlen-barlen))s"
local perc="[$cu...
分类:
其他好文 时间:
2014-08-01 10:53:01
阅读次数:
257
在centos x64 上安装openfire,运行/etc/init.d/openfire start后发现服务器没法开启,查看log日志:nohup: failed to run command `/opt/openfire/jre/bin/java': No such file or dire...
分类:
其他好文 时间:
2014-08-01 04:48:11
阅读次数:
182