My question is about using aliases in CQL queries.
For example in SQL we can write:
SELECT p.name FROM Persons as p
Is there something similar in CQL?
From cassandra 2.0, CQL 3 supports aliases in SELECT
http://www.datastax.com/dev/blog/cql-in-cassandra-2-0
SELECT event_id, dateOf(created_at) AS creation_date, blobAsText(content) AS content FROM timeline;
When I browsed through the documentation of CQL3 I didn't find any reference to using the as
alias.
I'd advise you to have a read through datastax's documentation on what the SELECT statement can and cant do in `CQL 3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With