Why does DBMaker return null when using QueryRunner or ResultSet function in JDBC?
It’s a problem of org.apache.commons.dbutils.QueryRunner. If you have the same column name in different table, you have to use “as” syntax to set alias. For example, if table t1 and t2 have the same column c1, you can type “t1.c1 as t1_c1” to set the alias of t1.c1.