基本语法
修改字段长度
1 | alter table 表名 modify 字段名 字段类型; |
mysql
查询数据库字段名称和字段类型
1 | SELECT |
查询数据库隔离级别
1 | show variables like 'transaction_isolation' |
查找持续时间超过60s的事务
1 | select * from information_schema.innodb_trx where TIME_TO_SEC(timediff(now(), trx_started)) > 60 |
执行执行计划
1 | explain [SQL语句] |
oracle
查询数据库字段名称和字段类型
1 | SELECT |
评论加载中