cambyzju opened a new pull request, #40715:
URL: https://github.com/apache/doris/pull/40715

   Support `CREATE OR REPLACE VIEW` stmt.
   
   Usage example:
   ```
   mysql>  CREATE VIEW IF NOT EXISTS view_test_create_or_replace_view
       ->         AS SELECT * FROM test_create_or_replace_view_tbl1;
   Query OK, 0 rows affected (0.02 sec)
   
   mysql> select * from view_test_create_or_replace_view;
   +------+------+------+
   | k1   | k2   | v    |
   +------+------+------+
   |    1 |    1 |    1 |
   +------+------+------+
   1 row in set (0.03 sec)
   
   mysql> 
   mysql>  CREATE OR REPLACE VIEW view_test_create_or_replace_view
       ->         AS SELECT * FROM test_create_or_replace_view_tbl2;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> select * from view_test_create_or_replace_view;
   +------+------+------+
   | k1   | k2   | v    |
   +------+------+------+
   |    2 |    2 |    2 |
   +------+------+------+
   1 row in set (0.03 sec)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to