[odb-users] SQL LIKE clause equivalent in ODB
Boris Kolpackov
boris at codesynthesis.com
Sat Nov 17 15:01:50 EST 2012
Hi Reza,
Reza Jahanbakhshi <reza.jahanbakhshi at gmail.com> writes:
> What is sql LIKE clause equivalent in ODB queries?
There is no syntactic sugar for this clause yet, however, you can use
the native fragment. For example:
query q (query::first + "LIKE" + query::_val ("J%"));
Or:
std::string like = ...;
query q (query::first + "LIKE" + query::_val (like));
Boris
More information about the odb-users
mailing list