How to load a taxonomy term with case-sensitive? I used this

    $this-&gt;termStorage-&gt;loadByProperties(['name' =&gt; 'test']);


I got two terms: Test, test.
I want to get only one: test

This is working without case-sensitive: 

    $this-&gt;termStorage-&gt;getQuery()-&gt;condition('name', 'test', '=')-&gt;execute();


    \Drupal::database()-&gt;select('taxonomy_term_field_data', 't')
      -&gt;condition('t.name', 'test')
      -&gt;fields('t', ['name'])
      -&gt;execute()
      -&gt;fetchAll();


    \Drupal::database()-&gt;query("SELECT name FROM taxonomy_term_field_data WHERE name='test'")-&gt;fetchAll();
To retrieve result with sensitive case, you can use binary in where clause:
Like this sql query. 

SELECT name FROM taxonomy_term_field_data WHERE binary name='test'

For Drupal you can use \Drupal::database()-&gt;select with where conditions take a look here .

Try this:

 $result = \Drupal::database()-&gt;select('taxonomy_term_field_data', 't')
    -&gt;where(
      'binary name = :term_name',
      ['term_name' =&gt; 'test']
    )
    -&gt;fields('t', ['name'])
    -&gt;execute()
    -&gt;fetchAll();