We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
上面代码输出的不是下面工具里面的这种结构
The text was updated successfully, but these errors were encountered:
@XZL-Github Different print formats
connection.Open(); using (var command = new TDengineCommand(connection)) { command.CommandText = "describe test.d1001;"; using (var reader = command.ExecuteReader()) { var fieldCount = reader.FieldCount; for (var i = 0; i < fieldCount; i++) { Console.Write($"{reader.GetName(i),-20}|"); } Console.WriteLine(); for (var i = 0; i < fieldCount; i++) { Console.Write("--------------------+"); } Console.WriteLine(); while (reader.Read()) { for (int i = 0; i < fieldCount; i++) { var v = reader.GetValue(i); switch (v) { case byte[] bs: Console.Write($"{System.Text.Encoding.UTF8.GetString(bs),-20}|"); break; default: Console.Write($"{v,-20}|"); break; } } Console.WriteLine(); } } }
Sorry, something went wrong.
No branches or pull requests
上面代码输出的不是下面工具里面的这种结构
The text was updated successfully, but these errors were encountered: