zoukankan      html  css  js  c++  java
  • Oracle不常用SQL

    Oracle 查询最近创建的表

    select * from user_objects where object_type='TABLE' order by created desc

    Oracle 查询最近删除的表

    select * from dba_recyclebin s where type='TABLE' and OWNER='WCECDB' order by droptime desc    //WCECDB查询的数据库

    Oracle 查询最近修改的表

    select uat.table_name,(select last_ddl_time from user_objects where object_name = uat.table_name) as lastddltime from user_all_tables uat
    order by lastddltime desc

    推荐地址:

     Oracle根据主键获取对应表,Oracle根据外键获取相关表

    Oracle 查询当前数据库环境变量

    select userenv('language') nls_lang from dual; 

    1.右击"我的电脑" - "属性" - "高级" - "环境变量" - "系统环境变量":

     2.点击"新建", 变量名设置为"NLS_LANG", 变量值设置为"AMERICAN_AMERICA.ZHS16GBK", 点击"确定";   (数据库字段集)
  • 相关阅读:
    设计模式——策略模式
    LeetCode
    平凡世界里的万千思绪
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
  • 原文地址:https://www.cnblogs.com/-hao/p/9601137.html
Copyright © 2011-2022 走看看