Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in SQL by (2.5k points)

I wanted to use MOD function in SQL Server.

'MOD' is not a recognized built-in function name.

DECLARE @m INT

SET @m = MOD(38,5)

SELECT @m

1 Answer

0 votes
by (7.2k points)

For using the mod in MYSQL, we need to use a percent sign.

SELECT 38 % 5 would give you the modulo 3

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...