You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE OR REPLACE FUNCTION get_employee_details(emp_id employees.id%TYPE)
RETURNS employees.name%TYPE AS $$
DECLARE
employee_name employees.name%TYPE; -- Matches the type of employees.name column
BEGIN
SELECT name INTO employee_name FROM employees WHERE id = emp_id;
RETURN employee_name;
END;
$$ LANGUAGE plpgsql;
Example
parsed json for the above -
for parameter
emp_id employees.id%TYPE
the typename is coming up as"PLpgSQL_type": { "typname": "UNKNOWN" }
The text was updated successfully, but these errors were encountered: