Returns an SQL expression of the value.
The value will be converted to string and quoted if required.