我需要从应用程序中清空一些表内容我使用那个 MySQL 命令系统,但它没有清空表的命令
#region Delete
public MySqlCommand Delete(string table, string column, string value)
{
_command = _command.Replace("<R>", "`" + table + "`");
_command = _command.Replace("<C>", "`" + column + "`");
_command = _command.Replace("<V>", "'" + value + "'");
return this;
}
public MySqlCommand Delete(string table, string column, long value)
{
_command = _command.Replace("<R>", "`" + table + "`");
_command = _command.Replace("<C>", "`" + column + "`");
_command = _command.Replace("<V>", value.ToString());
return this;
}
public MySqlCommand Delete(string table, string column, ulong value)
{
_command = _command.Replace("<R>", "`" + table + "`");
_command = _command.Replace("<C>", "`" + column + "`");
_command = _command.Replace("<V>", value.ToString());
return this;
}
public MySqlCommand Delete(string table, string column, bool value)
{
_command = _command.Replace("<R>", "`" + table + "`");
_command = _command.Replace("<C>", "`" + column + "`");
_command = _command.Replace("<V>", (value ? "1" : "0"));
return this;
}
#endregion
有人想清空桌子吗,谢谢