11 lines
145 B
Transact-SQL
11 lines
145 B
Transact-SQL
CREATE FUNCTION czas_trwania
|
|
(
|
|
@rozp TIME(0),
|
|
@zak TIME(0)
|
|
)
|
|
RETURNS INT
|
|
AS
|
|
BEGIN
|
|
RETURN DATEDIFF(mi, @rozp, @zak)
|
|
END;
|
|
GO |