0

My database is MySQL and I want to run the following query.

SELECT * FROM myTable WHERE BINARY 'something' = 'Something'

I want to use the query above in Typeorm.

await repository.createQueryBuilder("myTable")
.where('myTable.something = :something', { something: 'Something' })
.getOne();

Where must I apply for BINARY?

Based on this link, I want to have case sensitive. because there is difference between something and Something

thanks in advance

AR Second
  • 582
  • 1
  • 6
  • 25

0 Answers0