How to convert a MySql selection into an string?
<p>I have a webform made in ASP.NET C# with a MySql database. The database contains a field named id wich is primary, auto-increment and of type INT.</p>

<p>I want to select a specific record, say number 10, convert it to a string so i can compare it with another string.</p>

<p>Query</p>

<p><code>query = "SELECT id FROM applys WHERE id = 10";</code></p>

<p>.ToString(); doesn't work. 
I don't know wich step to take for the conversion.</p>

<p>C#</p>

<pre><code>if (variable == "10")
{
  // some compare code
}
</code></pre>
