mysql删除语句返回值_sql删除语句返回值
intid=
(int)GVAdmins.DataKeys[e.RowIndex].Value;stringsql="deletefromAdminswhereAdminsID="+id;if(SqlHelper.ExecuteSqlGet(sql)==0) {Response.Write("
int id = (int)GVAdmins.DataKeys[e.RowIndex].Value;
string sql = "delete from Admins where AdminsID=" + id;
if (SqlHelper.ExecuteSqlGet(sql) == 0)
{
Response.Write("!");
}
else
mysql中delete语句
{
Response.Write("");
}
Bind();
if (SqlHelper.ExecuteSqlGet(sql) == 0)为什么执⾏sql删除语句等于0时,提⽰操作成功,⽽不是⼤于0 求详细解释。
SqlHelper.ExecuteSqlGet⽅法的代码:
public static int ExecuteSqlGet(string SQLString)
{
using (SqlConnection connection = new SqlConnection(connectionString))
{
SqlCommand cmd = new SqlCommand(SQLString, connection);
try
{

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。