我想根据身份证号和QQ号找回密码,写完查询语句后,我怎么判断用户输入的和数据库的一样??求怎么写??
怎么写,具体的?
怎么写,具体的?
解决方案 »
- 请问这个是什么意思?
- 非常漂亮的Vista侧边栏CPU仪表盘控件C#源码发布!! 【散分】
- 请问如何让Button 放在整个页面底部
- 在父窗口中打开一个子窗口关闭子窗口后如何刷新父窗口中的DATAGRID
- 在windows窗口中可以联接到web页面吗?
- 有问题请教:安装visual stdio.net出现了问题....请求帮助,小女子不胜感激~~
- 如何关闭excel进程.
- 这里是c#?
- 请教mysql日期字段类型设置与C#DataTable配合的问题
- c#的dataGrid的记录筐能够上下拉动,能不能固定,使他的高度不变?在线等!
- 刚安装了Win8开发版,里面的VS2011不会用。
- 求助:Access to the path "" is denied.
private void btnOk_Click_1(object sender, EventArgs e)
{
db.ConnOpen();
string sql = string.Format(@"select QQPwd,IDCard from dbo.Users
where QQPwd='{0} and IDCard='{1}", txtCard.Text.Trim(), txtQQid.Text.Trim());
int result = Convert.ToInt32(db.ExecuteNonQuery(sql));
if ()
{
}
where QQPwd='{0} and IDCard='{1}", txtCard.Text.Trim(), txtQQid.Text.Trim());
int result = Convert.ToInt32(db.ExecuteNonQuery(sql));
if (result > 0)
{
存在
}