Originally created by @matuslittva on GitHub (Jul 6, 2017).
Hello i want to write query to select all results starting with particular letter, but this where clause is not working:
Where("name like 'A%'")
What is the problem?
Originally created by @matuslittva on GitHub (Jul 6, 2017).
Hello i want to write query to select all results starting with particular letter, but this where clause is not working:
Where("name like 'A%'")
What is the problem?
adam
added the question label 2025-12-29 18:23:44 +01:00
@JohnEstropia commented on GitHub (Jul 6, 2017):
@matuslittva`Where` clauses use `NSPredicate`s internally, so you need to write
```swift
Where("%K BEGINSWITH %@", "name", "A")
```
There's a good cheat sheet here: http://nshipster.com/nspredicate/
(Under "String Comparisons")
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @matuslittva on GitHub (Jul 6, 2017).
Hello i want to write query to select all results starting with particular letter, but this where clause is not working:
Where("name like 'A%'")
What is the problem?
@JohnEstropia commented on GitHub (Jul 6, 2017):
@matuslittva
Whereclauses useNSPredicates internally, so you need to writeThere's a good cheat sheet here: http://nshipster.com/nspredicate/
(Under "String Comparisons")
@matuslittva commented on GitHub (Jul 6, 2017):
@JohnEstropia thank you so much