mardi 16 octobre 2018

Problem in SQLite selecting an element from a column when not using id

I have an sqlite database in Unity which I'm trying to select a value from a column that is not id, just like this:

sqlQuery = "SELECT Question FROM Questions WHERE Category= 'Art'";

But I receive this error in the console "InvalidCastException: Cannot cast from source type to destination type". And I don't know why it occurs.




Aucun commentaire:

Enregistrer un commentaire