为了重复存储在MySQL表的data列中的值,该列的名称必须作为REPEAT()
函数的第一个参数传递。“学生”表中的数据用于演示它:
mysql> Select REPEAT(Name,3)AS Name from student; +-----------------------+ | Name | +-----------------------+ | GauravGauravGaurav | | AaravAaravAarav | | HarshitHarshitHarshit | | GauravGauravGaurav | | YashrajYashrajYashraj | +-----------------------+ 5 rows in set (0.00 sec)