小编Raj*_*air的帖子

错误:运算符不存在:整数 == 整数

我在 postgres 函数中使用这些语句。

Select count(*) into V_check
from employee
where employee_name like 'Raj%';

if V_check == 0
then
     update exception set exception_found = 'Raj';
end if;
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

ERROR:  operator does not exist: integer == integer
LINE 1: SELECT V_check == 0
Run Code Online (Sandbox Code Playgroud)

sql postgresql

8
推荐指数
2
解决办法
7643
查看次数

如何在 athena 中对字符串进行 MD5 哈希?

athena 中的 MD5 哈希函数不适用于字符串。但是,雅典娜的文档表明确实如此:https ://docs.aws.amazon.com/redshift/latest/dg/r_MD5.html

不知道我在这里缺少什么。如果我将 varchar 转换为 varbinary,则生成的哈希值不正确。

收到此错误:


SYNTAX_ERROR: line 1:8: Unexpected parameters (varchar(15)) for function md5. Expected: md5(varbinary)

This query ran against the "temp" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: dd959e8a-7fa4-4170-8895-ce7cf58be6ea.```
Run Code Online (Sandbox Code Playgroud)

presto amazon-athena

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

amazon-athena ×1

postgresql ×1

presto ×1

sql ×1