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();
查看全文
相关阅读:
Android 判断app何时是打开或者关闭的技术研究
JSON返回DateTime/Date('123123123')/解决办法
SpringMVC日期类型转换问题三大处理方法归纳
jackson 转json. 过滤null值
将java.util.Date类型转换成json时,使用JsonValueProcessor将date转换成希望的类型
jackson 实体转json 为NULL或者为空不参加序列化
美工与程序猿的Web工作怎样做到相对分离?
jQuery 序列化表单数据 serialize() serializeArray()
iOS开发- 隐藏状态栏(电池栏)
《Programming Hive》读书笔记(一)Hadoop和hive环境搭建
原文地址:https://www.cnblogs.com/shf/p/343338.html
最新文章
QT定时器的两种应用(QObject就有timerEvent事件,一种什么样的居心呢?)
Linux+Nginx+Asp.net Core
后台登录界面
动态链接库
DOS批处理
In partitioned databases, trading some consistency for availability can lead to dramatic improvements in scalability.
消息队列实现分布式事务
koa+orm2
RabbitMQ 安装与使用
ImageProcessor组件
热门文章
DapperPoco
11款开放中文分词引擎大比拼
org.apache.http.ProtocolException: Target host is not specified
Tomcat 的 ErrorPage 实现原理分析
分布式搜索Elasticsearch——QueryBuilders.matchPhrasePrefixQuery
【Web】CDN加速效果浅析
使用jQuery的attr方法来修改onclick值
spring MVC 如何获取session并实现传值到前台
ModelAndView
如何防止android app被kill
Copyright © 2011-2022 走看看