Click here to Skip to main content
15,890,932 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Go CREATE FUNCTION VICTIMS_FUNC
(@GENDER CHAR(1) RETURNS TABLE
AS
RETURN ( SELECT *
FROM VICTIMS
WHERE SEX = @GENDER);
END;

What I have tried:

Where’s the error coming from?
Posted
Updated 12-Dec-21 9:18am

1 solution

You are missing a close bracket at the end of the parameters:
SQL
(@GENDER CHAR(1) RETURNS TABLE
                ^
                |
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900