mysql 函數

1. INSERT 函數:替換字符串

mysql> SELECT INSERT('Football',2,4,'Play') AS col1,
> INSERT('Football',-1,4,'Play') AS col2,
> INSERT('Football',3,20,'Play') AS col3;

+----------+----------+--------+
| col1     | col2     | col3   |
+----------+----------+--------+
| FPlayall | Football | FoPlay |
+----------+----------+--------+
相關文章
相關標籤/搜索