title: How to change the database name dynamically in MyBatis XML file?
body: <p>I am using Spring Boot with MyBatis. I have the following query in one mapper XML file.</p>
  
  <pre><code>&lt;select id="someFunction" resultMap="someResultMap"&gt;
      SELECT *
      FROM p LEFT JOIN anotherDatabase.table AS q ON p.id = q.id
  &lt;/select&gt;
  </code></pre>
  
  <p>Actually "anotherDatabase" is hard-coded in my query because I do NOT want to add another data source for only this query. But how can I make this "anotherDatabase" name dynamically (maybe configure it in some properties file) as it may change in different environment deployed?</p>