在这种情况下,SPACE() 函数将根据 WHERE 子句中给出的条件添加空格。下面来自学生表的示例将对其进行演示。
mysql> Select Id,Name,Space(5) from student WHERE Name='Harshit'; +------+---------+----------+ | Id | Name | Space(5) | +------+---------+----------+ | 15 | Harshit | | +------+---------+----------+ 1 row in set (0.00 sec)