Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
create or replace function eztest( ASIN varchar(10)) returns integer AS $$ plan = plpy.prepare("Select bookid from book where ASIN = $1", ["text"]) rv = plpy.execute(plan, [ ASIN ]) return rv["bookid"] $$ language plpython2u; Select eztest('B00DMYO2D2');
ERROR: NameError: global name 'ASIN' is not defined CONTEXT: Traceback (most recent call last): PL/Python function "eztest", line 3, in <module> rv = plpy.execute(plan, [ ASIN ]) PL/Python function "eztest"
Join the community of 500,000 technology professionals and ask your questions.