Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

compare fields sql

SELECT field1, field2, IF(field1 = field2, 'Same', 'Different') AS Status 
FROM table
Source by sqlerrors.com #
 
PREVIOUS NEXT
Tagged: #compare #fields #sql
ADD COMMENT
Topic
Name
9+1 =