Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have already done some function
but i cant able to do
so please let me know the examples

What I have tried:

Function and stored procedure in cassandra
Posted
Updated 23-May-17 18:20pm

1 solution

As far as I know, there is no direct equivalent for a procedure in Cassandra. If you need a function in a SELECT, INSERT or UPDATE statement, you can create an UDF, see CREATE FUNCTION[^]

On the other hand if you need a block of DML statements, you could use BATCH[^]. However, since this is not a stored or named piece of code it's not like a procedure you could call by name. Instead it's more like an anonymous T-SQL block in SQL Server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900