Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SubString in query CQL

It is possible to found a substring in a String in CQL ? For exemple, make a query like this :

select id from table where string contains 'do' Thank you in advance

like image 593
Alexandre S. Avatar asked May 30 '26 13:05

Alexandre S.


1 Answers

Yes, this is possible with the usage of Storage Attached Index (SASI). Your query will be something like:

SELECT * FROM table WHERE colname LIKE 'do%';

Have a look at official documentation on how to use it.

like image 167
xmas79 Avatar answered Jun 02 '26 21:06

xmas79



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!