1. A computer-implemented method for query hint learning in a database management system, the method comprising: detecting, by the database management system, a hint in a first query, wherein the first query has a first signature; receiving, by the database management system, a second query having a second signature; determining, by the database management system, that the second signature correlates with the first signature; establishing, by the database management system, a query plan which is based on the second query and uses the hint in the first query; and processing, by the database management system in response to receiving the second query, the query plan.