- 博客(4)
- 收藏
- 关注
原创 查看表空间
第一种方法: select * from ( SELECT d.status “Status”, d.tablespace_name “Name”, d.contents “Type”, d.extent_management “Extent Management”, round(NVL(a.bytes / 1024 / 1024, 0),2) “Size (M)”, round(NVL(a.bytes - NVL(f.bytes, 0), 0) / 1024 / 1024,2) “Used (M)”, r
2020-06-02 14:39:23
412
原创 sql中的时间函数
![ 1: SQL 标量函数-----日期函数 day() 、month()、year() select day(createtime) from life_unite_product --取时间字段的天值 select month(createtime) from life_unite_product --取时间字段的月值 select year(createtime) from life_unite_product --取时间字段的年值 select datepart(yy,c.
2020-06-01 11:10:28
2728
原创 hive常见报错
常见错误: feiled:SemanticException –语意错误 feiled:ParseException–语法错误 FAILED: SemanticException Schema of both sides of union should match.–缺失字段 SemanticException [Error 10002]: Line 26:14 Invalid column reference ‘statis_month’ --没有这个字段 FAILED: SemanticExcepti
2020-05-29 17:43:31
2770
原创 hive常用命令
hive的常用操作命令 查看库 show databases; 使用库(要操作的库) use 库名; 查看库中有那些表 show tables; 查看表结构 desc tdw_credit_bass_m; — tdw_credit_bass_m 表名 查看建表语句 show create
2020-05-29 17:27:18
215
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅