Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to just read a table item?

$
0
0

Im creating this table var sql = "CREATE TABLE TIPOS (ID_TIPO INT NOT NULL UNIQUE);";

And then im adding something to it

sql = "INSERT INTO ITEMS (ID_TIPO) VALUES (@body);";

     using (var cmd = connection.CreateCommand ()) {

    cmd.CommandText = sql;

    cmd.Parameters.AddWithValue ("@Body", "2");

    cmd.ExecuteNonQuery ();

     }

So i just want to find that 2 when clicking on a button... i read that sample "notepad" and stuff but it is like full with that "note" stuff and i just cant separate things, can someone just tell me how simple like make it appear on the output by clicking on a button?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>