Wild Cards & Distinct
Wild Cards
Used to replace one or more characters
% wild card to replace more than one character
_ wild card to replace one character.
Distinct
Distinct is used to get a unique set of records from a table.
Distinct and NULL
MySQL keeps one NULL value and eliminates the other because the DISTINCT clause treats all
NULL values as the same value.
Distinct with Multiple Columns
Last updated