You do not have enough space before the sentence where
, so it is added directly to the table name, and you actually have no sentence where
:
String select = "SELECT jobname FROM " + TABLE_JOBS+ " where userid =" +myid;
// whitespace was missing here
source
share