17 lines
250 B
Transact-SQL
17 lines
250 B
Transact-SQL
DROP FUNCTION UczenSzkoly
|
|
GO
|
|
|
|
CREATE FUNCTION UczenSzkoly
|
|
(
|
|
@zm VARCHAR(4)
|
|
)
|
|
RETURNS TABLE
|
|
AS
|
|
RETURN SELECT imie, nazwisko
|
|
FROM Uczniowie
|
|
WHERE klasa = @zm
|
|
GO
|
|
|
|
SELECT *
|
|
FROM UczenSzkoly('3GIM');
|