- 博客(3)
- 收藏
- 关注
原创 Cannot resolve class or package ‘mysql’处理方法
Cannot resolve class or package 'cj'
2022-10-14 14:12:41
1471
1
原创 工作中用到的部分sql记录
查询数据库磁盘空间: SELECT a.tablespace_name “表空间名称”, total / (1024 * 1024 * 1024) “表空间大小(G)”, free / (1024 * 1024 * 1024) “表空间剩余大小(G)”, (total - free) / (1024 * 1024 * 1024) “表空间使用大小(G)”, round((total - free) / total, 4) * 100 “使用率 %” FROM (SELECT tablespace_name,
2021-07-08 13:43:52
137
原创 sql语句将表数据复制到另一个表中
假定有一个a表,一个b表,要将a表的数据拷贝到b表中。 1.如果a表和b表结构相同。 insert into b select * from a; 2.如果a表和b表的结构不相同。 insert into b(col1, col2, col3, …) select a.col1, a.col2, a.col3, … from a where …; 3.如果b表不存在。 select * into b from a; select a.col1, a.col2, c.col3, … into b from .
2020-12-28 14:57:57
995
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅