如何在cassandra数据库中创建存储过程/函数? [英] How to create stored procedure/function in cassandra database?

查看:383
本文介绍了如何在cassandra数据库中创建存储过程/函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了一些功能

但是我无法做到

所以请让我知道这些例子



我尝试过:



cassandra中的函数和存储过程

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

推荐答案

据我所知,Cassandra中的程序没有直接的等价物。如果需要SELECT,INSERT或UPDATE语句中的函数,则可以创建UDF,请参阅创建功能 [ ^ ]



另一方面,如果你需要一个DML语句块,你可以使用 BATCH [ ^ ]。但是,由于这不是存储或命名的代码段,因此它不像您可以通过名称调用的过程。相反,它更像是SQL Server中的匿名T-SQL块。
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.


这篇关于如何在cassandra数据库中创建存储过程/函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆