select id,command,description,content from message where 1=1 and command = ?
上面一条sql语句记得where 1=1 和后面的and之间要保留空格。还有如果出现乱码,也要记得在连接数据库的时候加上编码格式
Connection conn = (Connection) DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/robotreply?characterEncoding=utf8", "root", null);
一般新手比较容易犯错