Skip to content

Commit

Permalink
更新:ConsoleSql修正错误的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat authored Jun 8, 2024
1 parent 1e0791d commit 29d3c11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ConsoleSql/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,18 @@ private void Cmd(CommandArgs args)
}
if (args.Parameters.Count == 0)
{
args.Player.SendErrorMessage("格式错误!正确格式: sql <SQL语句>");
args.Player.SendErrorMessage("格式错误!正确格式: sql <SQL语句>;");
args.Player.SendWarningMessage("常用SQL语句:");
args.Player.SendWarningMessage("->Sqlite列出表格:SELECT name FROM sqlite_master WHERE type='table';");
args.Player.SendWarningMessage("->Mysql列出表格:SHOW TABLES;");
args.Player.SendWarningMessage("->删除表格:DELETE FROM <表格名字> WHERE <条件>;");
args.Player.SendWarningMessage("->清空表格:DELETE TABLE <表格名字>;");
args.Player.SendWarningMessage("->删除表格:DROP TABLE <表格名字>;");
args.Player.SendWarningMessage("->清空表格:DELETE FROM <表格名字>;");
args.Player.SendWarningMessage("->查询表格内容:SELECT * FROM <表格名字>;");
args.Player.SendWarningMessage("->查询表格内容扩展:SELECT * FROM <表格名字> WHERE <条件 > LIMIT <返回行数>;");
args.Player.SendWarningMessage("->删除记录:DELETE FROM <表格名字> WHERE <条件>;");
args.Player.SendWarningMessage("->修改数据表指定内容:UPDATE <表格名字> SET <更新列名> = '更新值' WHERE <条件>");
args.Player.SendWarningMessage("*详细教程:https://www.runoob.com/sql/sql-tutorial.html");

}
else
{
Expand Down

0 comments on commit 29d3c11

Please sign in to comment.