数据库中数据
2007-10-01 00:00:00.000
1900-01-01 00:00:00.000
2007-08-30 09:34:27.000
2007-08-30 09:40:10.000在文本框里添的内容做为查询条件
string a = TextBox2.Text;
string sql = "select * from 回执单_ where 播出日期 like '%" + a + "%'";select * from hzd_ where 播出日期 like '%2007%' 好使
select * from hzd_ where 播出日期 like '%2007-08%'不好使,结果为空
为什么?
2007-10-01 00:00:00.000
1900-01-01 00:00:00.000
2007-08-30 09:34:27.000
2007-08-30 09:40:10.000在文本框里添的内容做为查询条件
string a = TextBox2.Text;
string sql = "select * from 回执单_ where 播出日期 like '%" + a + "%'";select * from hzd_ where 播出日期 like '%2007%' 好使
select * from hzd_ where 播出日期 like '%2007-08%'不好使,结果为空
为什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货