zoukankan
html css js c++ java
C# split用法
1
string
[] sss
=
txtQueryVal.Text.ToString().Split(
new
char
[]
{
'
-
'
}
);
2
3
string
year
=
sss[
0
].ToString();
4
string
month
=
sss[
1
].ToString();
5
string
day
=
sss[
2
].ToString();
6
7
string
selsql4
=
"
select * from OA_Worklog where Datepart(year,OA_Worklog_Day)='
"
+
year
+
"
'and Datepart(month,OA_W orklog_Day)='
"
+
month
+
"
'and Datepart(day,OA_Worklog_Day)='
"
+
day
+
"
'
"
;
8
SqlDataAdapter sqlCom4
=
new
SqlDataAdapter(selsql4,sqlCon);
9
DataSet ds
=
new
DataSet();
10
sqlCom4.Fill(ds,
"
OA_Worklog
"
);
11
DGrid_QueryResult.DataSource
=
ds.Tables[
"
OA_Worklog
"
].DefaultView;
12
DGrid_QueryResult.DataKeyField
=
"
OA_Worklog_Id
"
;
13
DGrid_QueryResult.DataBind();
查看全文
相关阅读:
PAT A1023 Have Fun with Numbers (20) [⼤整数运算 高精度]
算法笔记-数学问题-高精-大整数
PAT A1130 Infix Expression (25) [中序遍历]
PAT A1130 Infix Expression (25分) [二叉树中序遍历 中缀表达式]
PAT A1129 Recommendation System (25) [set的应⽤,运算符重载]
PAT A1118 Birds in Forest (25) [并查集]
PAT A1124 Raffle for Weibo Followers (20分) [map vector]
C++ STL
PAT A1121 Damn Single (25) [map set hash]
算法笔记-易错记录
原文地址:https://www.cnblogs.com/shf/p/343338.html
最新文章
centos7增加开机自启动服务
subversion配置记录
APK签名制作以及签名中的SHA信息获取
APK反编译再打包并重签名
Android日期与时间选择控件使用记录
Android字符串占位符使用记录
Andriod数据库操作记录之创建与插入
YOLOv3: An Incremental Improvement 论文阅读
YOLO9000: Better, Faster, Stronger 论文阅读
SqueezeNet: AlexNet-Level Accuracy With 50x Fewer Parameters And <0.5MB Model Size 阅读笔记
热门文章
Deep Compression : Compressing Deep Neual Networks With Pruning, Trained Quantization And Huffman Coding 学习笔记
Redmon_You_Only_Look_Once 学习笔记
算法笔记-进制转换
算法笔记-字符串
算法笔记-回文数
PAT A1019 General Palindromic Number (20) [回⽂数 进制转换]
算法笔记-数学问题-素数
算法笔记-数学问题-分数
数学问题-最大公约数和最小公倍数
leetcode 64 add binary
Copyright © 2011-2022 走看看