我如何找到一张桌子?

时间:2018-05-09 17:27:39

标签: sql

使用以下命令更改了

1 个答案:

答案 0 :(得分:0)

怎么样......

SQL> CREATE TABLE public.stack1 ( ID INTEGER ) ;
CREATE TABLE
SQL> ALTER TABLE public.stack1 OWNER TO mauro ;
ALTER TABLE
SQL> SELECT start_timestamp, user_name, request  
     FROM v_monitor.query_requests 
     WHERE request_type = 'DDL' 
     ORDER BY 1 DESC LIMIT 2;
        start_timestamp        | user_name |                   request                   
-------------------------------+-----------+---------------------------------------------
 2018-05-09 14:13:50.57512-04  | dbadmin   | ALTER TABLE public.stack1 OWNER TO mauro ;
 2018-05-09 14:13:06.348753-04 | dbadmin   | CREATE TABLE public.stack1 ( ID INTEGER ) ;
(2 rows)