Suppose I have a table t1
, it has a column effecitive_game
, which will store the names along with comma(OR some other predetermined chars like ';') so that I can use to filter.
For example: the column value is 'game1,game2,game3'
I hope to write a SQL in JDBC like:
"SELECT * FROM t1, WHERE "+ HERE_IS_A_PARAM_ + "IN " +" effecitive_game'
//
how can I split the column value 'game1,game2,game3' into a set like ('game1','game2','game3') so that I can use IN
to construct the where condition?