concat配合information_schema的应用

 

1    concat的一般用法主要是用于拼接

示例:

执行语句 SELECT CONCAT('M','y','S','Q','L') 可以达到如下效果

MySQL concat用法举例

 

 2  在写SQL备份语句时,假定要导出三张表分别为world下的

MySQL concat用法举例

之前我们写备份语句要写三条 分别要导出这三张表;语句分别为

mysqldump -uroot -p123 world city >/tmp/world_city.sql
mysqldump -uroot -p123 world country >/tmp/world_country.sql
mysqldump -uroot -p123 world countrylanguage >/tmp/world_countrylanguage.sql
View Code

相关文章:

  • 2021-09-09
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-01-31
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
相关资源
相似解决方案