Answer the question
In order to leave comments, you need to log in
MySqlCommand get full response as string?
It is necessary from the response to - to get the full response of the server in order to parse and find the Constraint for the primary key. That is - for example, in phpMyAdmin - it looks like this:
How to pull out the entire response as one line in c#?SHOW CREATE TABLE <my_table_name>
sql = "SHOW CREATE TABLE `" + TableName_textBox.Text + "`";
command = new MySqlCommand(sql, conn);
reader = command.ExecuteReader();
reader.Read();
string s = ??????
Answer the question
In order to leave comments, you need to log in
I believe that there is still a way through information_schema and it is more correct than output parsing
As an example:
https://dba.stackexchange.com/questions/102371/how...
SqlDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(String.Format("{0}", reader[0]));
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question