我在MySQL中有一个名为locations
的表和一个包含图像的目录文件夹。现在,我需要一种方法,通过组合不同的列以及每个单词和序列号来重命名图像(在目录和表中)。
在表格locations
中,字段为image_filename
,title
,location
和area
。
是否可以通过连接字段image_filename
,序列号,单词title
,字段Sailing
,字段location
和单词重命名area
Greece
?
我们说我有一个标题为location_158
的图片,我想重命名(在目录和表格中)
Bay Diamanti(title
)+序列号+单词' Sailing' + Myconos(location
)+ Cyclades(area
)+ word' Greece'
BAY-迪亚曼蒂-1-帆船-Myconos-基克拉泽斯-希腊
提前致谢!