我的老板给我发了一个过程,而我需要:make_hash()函数?哈希码?
- 做出从表
- 创建临时表
- 抓取数据的功能,使用功能完善的数据
- 创建的哈希码的列的2
- 从临时的所有数据插入到原始数据
- 删除表
我一直在试图看看什么make_hash()函数。每当我运行功能它给了我该线路上的错误,所以我猜我需要先声明之前,在创建函数的开始声明。或者它是用户创建的功能?如果是这样,我有没有办法找到函数所在的模式?
我一直在努力研究的书籍和网上,但我无法找到任何东西,甚至在PostgreSQL的网站。
--------------------------------------------
ERROR: function make_hash(character varying) does not exist
LINE 1: UPDATE temp_match_queue_04022012 SET title_hash = make_hash(...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: UPDATE temp_match_queue_04022012 SET title_hash = make_hash(as_title) WHERE as_title IS NOT NULL
CONTEXT: PL/pgSQL function "metadata_matching_temp" line 30 at SQL statement
********** Error **********
ERROR: function make_hash(character varying) does not exist
SQL state: 42883
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Context: PL/pgSQL function "metadata_matching_temp" line 30 at SQL statement
添加您的代码和错误信息。 – barsju 2012-04-03 16:45:50
已更新!对不起,但我之前发布的查询错误是另一个。 – 2012-04-03 17:16:30
研究[pgcrypto](http://www.postgresql.org/docs/9.1/interactive/pgcrypto.html) – 2012-04-03 18:03:37