2021年1月25日

脚本

摘要: 待补充 阅读全文

posted @ 2021-01-25 17:02 刀锋93 阅读(31) 评论(0) 推荐(0) 编辑

服务器元数据

摘要: 命令描述 SELECT VERSION( ) 服务器版本信息 SELECT DATABASE( ) 当前数据库名 (或者返回空) SELECT USER( ) 当前用户名 SHOW STATUS 服务器状态 SHOW VARIABLES 服务器配置变量 阅读全文

posted @ 2021-01-25 16:59 刀锋93 阅读(89) 评论(0) 推荐(0) 编辑

复制表及表数据

摘要: 1.查看原表表结构 show create table oldtbname; 2.复制语句,执行,修改表名newtbname--复制表结构 3.复制表数据 insert into newtbname(a,b,c) select a,b,c from oldtbname 复制表结构 create ta 阅读全文

posted @ 2021-01-25 16:29 刀锋93 阅读(110) 评论(0) 推荐(0) 编辑

临时表

摘要: 临时表只在当前连接可见,当关闭连接时,Mysql会自动删除表并释放所有空间 语法:create temporary table tempEmp create temporary table temptal(uid integer(10),name char(5),sale varchar(10))e 阅读全文

posted @ 2021-01-25 16:08 刀锋93 阅读(151) 评论(0) 推荐(0) 编辑

导航