select * from table where tableid like %id%;
String sql = "select * from table where tableid like "%"?"%"";//?为占位符