萨芬
本博文简单介绍一下SQL Server中常用的几类查询及相关使用的方法。
一、ExecuteScalar方法获取单一值
ExecuteScalar方法是SqlCommand类的方法之一,执行查询,并返回查询所返回的结果集中的第一行第一列。
class Program
{
static void Main(...
分类:
数据库 时间:
2014-06-19 12:58:33
阅读次数:
449
原文:对[foreach]的浅究到发现[yield]
闲来无事,翻了翻以前的代码,做点总结,菜鸟从这里起航,呵呵。一、List的foreach遍历 先上代码段[1]: 1 class Program 2 { 3
static void Main(string[] args) 4 { 5 List d...
分类:
其他好文 时间:
2014-06-16 08:39:02
阅读次数:
223
今天要做matlab和java的混合编程,本来是装的jdk8,而matlab的java版本太低,无奈从新安装了次jdk,这次花费了我好久的时间。。。。。现在把心得写出来给大家分享,希望大家能够一次安装成功1:不要相信网上某些人说的不能安装在jdk的默认安装目录C:\Program
Files\Jav...
分类:
其他好文 时间:
2014-06-13 16:29:34
阅读次数:
232
Unity3D连接MySQL数据库所需要的DLL纠结了很久终于搞定需要一下DLLD:\Program
Files\Unity\Editor\Data\Mono\lib\mono\unity目录下的I18N.dll I18N.West.dll
I18N.CJK.dllD:\Program Files\...
分类:
数据库 时间:
2014-06-13 15:50:38
阅读次数:
656
1 using System; 2 using
System.Collections.Generic; 3 using System.Linq; 4 using System.Collections; 5 6
namespace Demo1 7 { 8 class Program 9 ...
分类:
其他好文 时间:
2014-06-13 15:00:27
阅读次数:
241
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 6 namespace 委托实现事件1 7 { 8 class
Program 9 {1...
分类:
其他好文 时间:
2014-06-13 14:58:21
阅读次数:
208
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 6 namespace 委托练习 7 { 8 class Program
9 {10 ...
分类:
其他好文 时间:
2014-06-13 14:50:06
阅读次数:
244
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 6 namespace myTest 7 { 8 class
Program 9 {10...
分类:
其他好文 时间:
2014-06-12 18:22:31
阅读次数:
224
闲来无事,翻了翻以前的代码,做点总结,菜鸟从这里起航,呵呵。一、List的foreach遍历
先上代码段[1]: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 ...
分类:
其他好文 时间:
2014-06-12 09:49:31
阅读次数:
195