博客
关于我
sql常用功能:
阅读量:775 次
发布时间:2019-03-24

本文共 196 字,大约阅读时间需要 1 分钟。

1. 合并数据库中多个字段信息

SELECT name, CONCAT(url, "+++", alexa) AS zuhe FROM test;

2. 查看表结构并获取创建语句

SHOW CREATE TABLE test;

3. 创建新表并修改表名

CREATE TABLE `newtest`LOCKS...

4. 数据迁移

INSERT INTO clone_tbl ...

操作完成

转载地址:http://efzuk.baihongyu.com/

你可能感兴趣的文章
postgis相关函数
查看>>
Postgres Docker版本安装mysql_fdw 插件
查看>>
Postgres invalid command \N数据恢复处理
查看>>
Postgres like 模糊查询匹配集合
查看>>
Postgres 自定义函数内实现 in 操作符的递归查询
查看>>
Postgres 返回当前时间前后指定天数的集合
查看>>
postgres--vacuum
查看>>
postgres--wal
查看>>