常用快捷语句

– postgre
alter table tablename rename column second_organization to second_organization2;

select * from pg_stat_activity where usename = ‘xxx’
– hive
alter table tablename change first_organization first_organization1 string;

– 3小时前
from_unixtime( unix_timestamp() - 60603,‘yyyy-MM-dd HH’)

你可能感兴趣的:(工具类,hive,数据库,mysql)