Mega Code Archive

 
Categories / MySQL / Math
 

Use power

/* mysql> select POW(10, 2); +------------+ | POW(10, 2) | +------------+ |        100 | +------------+ 1 row in set (0.00 sec) mysql> select POWER(2, 10); +--------------+ | POWER(2, 10) | +--------------+ |         1024 | +--------------+ 1 row in set (0.00 sec) */   select POW(10, 2); select POWER(2, 10);