数据库搜索问题
string a=TextBox1.Text.ToString();string scalarQueryStr="select count(*) from GovFile where ReleaseDate =cdate(a)";
这段有什么错吗
其中,ReleaseDate是datetime型
用
WHERE (ReleaseDate = CONVERT(DATETIME, '2006-03-18', 102))
转换试试。
[此贴子已经被作者于2006-4-19 9:16:14编辑过]
小笨苯,你好厉害