I have a SQLite database with a parameters table in the form:
'paramIdNum' INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
'paramTypeNum' INTEGER
'name' CHAR
'value' CHAR
along with more columns that I'm not currently interested in.
I want to select 35 of the almost 300 rows for further processing, and the current way I'm doing this is to simply select each one I want, one by one, and store it in a variable:
sqliteCommand.CommandText = "SELECT value FROM parameters WHERE paramIdNum='52'"
reader = sqliteCommand.ExecuteReader();
reader.Read();
param52 = reader["value"].ToString();
reader.Close();
Is there a better way to do this?