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();
查看全文
相关阅读:
websocket协议解决消息发送问题 Could not decode a text frame as UTF-8.
成功解决internal/modules/cjs/loader.js:596 throw err; ^ Error: Cannot find module 'minimatch'
FastDFS客户端与自定义文件存储系统
fastdfs 中client.conf 文件
centos 中 redis 的安装
redis安装成功后get: command not found
Shell基础知识(二)
Shell基础知识(一)
binary search模板总结
配置远程jupyter notebook
原文地址:https://www.cnblogs.com/shf/p/343338.html
最新文章
[2017-09-05]Abp系列——Abp后台作业系统介绍与经验分享
[2017-09-04]Abp系列——为什么值对象必须设计成不可变的
[2017-08-31]如何使用ruby同步markdown博文到博客园
[2017-08-21]Abp系列——如何使用Abp插件机制(注册权限、菜单、路由)
[2016-09-09]IIS站点发布、同步和备份工具MSdeploy(WebDeploy)介绍
[2017-08-25]100行CSharp代码利用dynamic写个DSL(特定领域语言)
[2017-08-28]Abp系列——业务异常与错误码设计及提示语的本地化
RMAN备份与恢复 —— 完全恢复与不完全恢复
RMAN备份与恢复 —— 参数文件还原
SQL 中的正则函数
热门文章
Oracle之共享服务器模式
Oracle 常用统计视图汇总
深入浅出Oracle数据读取一致性和事务表
SQL在Oracle内部的具体处理流程
详解Oracle数据字典
详解Oracle partition分区表
Oracle DBA_EXTENTS视图 与 DBA_SEGMENTS视图
Python3中tornado高并发框架
python web Tornado框架
Python web框架 Tornado异步非阻塞
Copyright © 2011-2022 走看看