MariaDB [dumpview]> SELECT Version(); +----------------------------------------+ | Version() | +----------------------------------------+ | 10.2.36-MariaDB-1:10.2.36+maria~bionic | +----------------------------------------+ 1 row in set (0.00 sec) MariaDB [(none)]> create database dumpview; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> MariaDB [(none)]> use dumpview Database changed MariaDB [dumpview]> CREATE TABLE TAB1 ( -> id INT(11), -> c VARCHAR(32) -> ); Query OK, 0 rows affected (0.02 sec) MariaDB [dumpview]> CREATE VIEW VIEW1 AS SELECT * FROM TAB1; Query OK, 0 rows affected (0.01 sec) MariaDB [dumpview]> insert into TAB1 VALUES (1,'Bernd Buffen'); Query OK, 1 row affected (0.00 sec) MariaDB [dumpview]> SELECT * from TAB1; +------+--------------+ | id | c | +------+--------------+ | 1 | Bernd Buffen | +------+--------------+ 1 row in set (0.00 sec) MariaDB [dumpview]> SELECT * from VIEW1; +------+--------------+ | id | c | +------+--------------+ | 1 | Bernd Buffen | +------+--------------+ 1 row in set (0.00 sec) MariaDB [dumpview]> --------------------MYSQLDUMP------------------------------------ root@localhost:~# mysqldump --routines dumpview -- MySQL dump 10.16 Distrib 10.2.36-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: dumpview -- ------------------------------------------------------ -- Server version 10.2.36-MariaDB-1:10.2.36+maria~bionic /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `TAB1` -- DROP TABLE IF EXISTS `TAB1`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `TAB1` ( `id` int(11) DEFAULT NULL, `c` varchar(32) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `TAB1` -- LOCK TABLES `TAB1` WRITE; /*!40000 ALTER TABLE `TAB1` DISABLE KEYS */; INSERT INTO `TAB1` VALUES (1,'Bernd Buffen'); /*!40000 ALTER TABLE `TAB1` ENABLE KEYS */; UNLOCK TABLES; -- -- Temporary table structure for view `VIEW1` -- DROP TABLE IF EXISTS `VIEW1`; /*!50001 DROP VIEW IF EXISTS `VIEW1`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE TABLE `VIEW1` ( `id` tinyint NOT NULL, `c` tinyint NOT NULL ) ENGINE=MyISAM */; SET character_set_client = @saved_cs_client; -- -- Dumping routines for database 'dumpview' -- -- -- Final view structure for view `VIEW1` -- /*!50001 DROP TABLE IF EXISTS `VIEW1`*/; /*!50001 DROP VIEW IF EXISTS `VIEW1`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `VIEW1` AS select `TAB1`.`id` AS `id`,`TAB1`.`c` AS `c` from `TAB1` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2020-12-25 13:17:15 root@localhost:~#