A short SELECT with a line comment
- SQL query
- SELECT a , b FROM t — list WHERE x = 'a b' ;
Result Minified SQL: SELECT a,b FROM t WHERE x='a b';
Original characters: 50
Minified characters: 33
Size reduction: 34%
Comments removed: 1
String literals kept: 1
- Removed 1 comment.
- Collapsed whitespace between 11 tokens; a single space stays only between two words or two operators.
- Size: 50 → 33 characters, 34% smaller.
The — comment and the padding disappear, but the two spaces inside the quoted value 'a b' stay, because they are part of the data.