Tue May 12, 2015 8:51 pm
Find a language that has an interface to your chosen database system (or, alternatively, if you have picked a language, pick a database it can talk to).
I use C programs to read and write data in MySQL databases. Many other languages will work in a similar fashion. One constructs a SQL statement as a string using programming language constructs to use the variable data you want. So...using arbitrary names, you do something like...
strcpy(query_string, "select text_data from rfid_db where uid = \"");
strcat(query_string, uid_value);
strcat(query_string, "\" limit 1;");
After issuing the call to the database, checking that it was successful, and that it returned a value, you would then move the returned result with a statement like...
strcpy(uid_descrpition, db_row[1]);
I will leave it as an exercise for the reader for cases where you want more than one column returned and where you want to get back more than one row. I don't represent the above code as particularly good C. Only that it will work. Your mileage may vary.