Sql weirdness
Can use space with zero width and other gimmicks for unreadable code
DECLARE@int=5;
WITHaAS(SELECTxFROM(VALUES(1),(1),(1),(1),(1))x(x))
SELECTTOP(@+1)IIF(r-@=1,SPACE(@)+'*',SPACE(@-r+1)+REPLICATE('*',r*2-1))
FROM(SELECTr=ROW_NUMBER()OVER(ORDERBY1/0)FROMa,ab,ac,ad)b
- Variable named @ (temp tables can be named # too)
- ORDERBY has 0-width space [https://en.wikipedia.org/wiki/Zero-width_space]
- Other stuff is weirdly working even if SSMS indicates warnings.
Zalgo script is also allowed
[https://en.wikipedia.org/wiki/Zalgo_text]


Also see this link for postgres weirdness which might largely be replicateable in sql: Select wat from sql