Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 0.8Mb


MySQL Internals Manual  /  ...  /  Please Avoid too Dense Code

25.1.3 Please Avoid too Dense Code

except you intend to check the parser or the performance of the reader of the code ;-).

Unfortunate example:
 select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5)|0,-(1+1)*-2;
 Improved example:
 SELECT 1 + 1, 1 - 1, 1 + 1 * 2, 8 / 5, 8 % 5,
        MOD(8,5), MOD(8,5) | 0, -(1+1) * -2;

User Comments
Sign Up Login You must be logged in to post a comment.