Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

divide by zero error in sql

#Dividing a/b

SELECT a / NULLIF(b, 0) 
FROM t 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #divide #error #sql
ADD COMMENT
Topic
Name
6+5 =