I am trying to use Java SQL namedParameterJdbcTemplate to get a List of ID Numbers.
private static final String Customer_Query = "SELECT Customer_Id From dbo.Customers WHERE Customer_Name = :Customer_Name";
MapSqlParameterSource customer_parameters = new MapSqlParameterSource();
customer_parameters.addValue( "Customer_Name", "Joe");
List<Long> Customer_Id = namedParameterJdbcTemplate.query(Customer_Query, customer_parameters);
Error: Cannot resolve method 'query(java.lang.String, org.springframework.jdbc.core.namedparam.MapSqlParameterSource)'
This resource gets the Whole Table row, I just need one column. How can this be done?
NamedParameterJdbcTemplate - Select * from
Trying to be efficient in querying for performance tuning and acquiring data, there are lot of sql columns in the table .