注册
来源:互联网 发布:dk系列图书 知乎 编辑:程序博客网 时间:2024/05/17 06:24
public bool creatUser(string sUser, string sPsd)
{
try
{
pSqlConn = new SqlConnection(sSqlConnString);
pSqlConn.Open();
SqlCommand sq = new SqlCommand();
sq.Connection = pSqlConn;
sq.CommandType = CommandType.Text;
sq.CommandText = string.Format("insert into Table_info([UserName],[UserPsd]) values ('" + sUser + "','" + sPsd + "')");
sq.ExecuteNonQuery();
pSqlConn.Close();
return true;
}
catch
{
return false;
}
}
{
try
{
pSqlConn = new SqlConnection(sSqlConnString);
pSqlConn.Open();
SqlCommand sq = new SqlCommand();
sq.Connection = pSqlConn;
sq.CommandType = CommandType.Text;
sq.CommandText = string.Format("insert into Table_info([UserName],[UserPsd]) values ('" + sUser + "','" + sPsd + "')");
sq.ExecuteNonQuery();
pSqlConn.Close();
return true;
}
catch
{
return false;
}
}
0 0
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- 注册
- CentOS 7 编译安装Redis
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- LightOJ - 1049 One Way Roads
- #ifdef __cplusplus extern "C" { #endif”的定义
- Cocos2d-x技能冷却还要等多久?---之游戏开发《赵云要格斗》(9)
- 注册
- 有人能解释android中px,dip,dp和sp这些单位的不同么?
- OTG中的ID脚风波释疑 .
- 不给发货发货人
- ARC 快速枚举Enumeration 属性错误
- Ubuntu防火墙设置
- 自定义readLine
- C语言中的malloc/free与C++中的new/delete的区别
- 利用java ,apache和android的方法来获取网络数据