MariaDB root@(none):dyw> create temporary table sales(product varchar(20) not nul
-> l,price decimal(7,2) not null default 0.00);
Query OK, 0 rows affected
Time: 0.021s
MariaDB root@(none):dyw> show tables; +----------------+ | Tables_in_dyw | +----------------+ | animals | | clone1_animals | | clone_animals | | dcount | | employees | | indextab | | tbl | +----------------+ 7 rows in set Time: 0.024s
MariaDB root@(none):dyw> insert into sales(product,price) values('computer',20000
-> );
Query OK, 1 row affected
Time: 0.009s
MariaDB root@(none):dyw> select * from sales; +----------+----------+ | product | price | +----------+----------+ | computer | 20000.00 | +----------+----------+ 1 row in set Time: 0.025s
MariaDB root@(none):dyw> quit; Goodbye!
[root@kvm3 ~]# mycli -uroot -p123qwe Connecting to socket /var/lib/mysql/mysql.sock, owned by user mysql MariaDB 10.5.16 mycli 1.26.1 Home: http://mycli.net Bug tracker: https://github.com/dbcli/mycli/issues Thanks to the contributor - Dick Marinus
MariaDB root@(none):(none)> use dyw; You are now connected to database "dyw" as user "root" Time: 0.001s
MariaDB root@(none):dyw> select * from sales; (1146, "Table 'dyw.sales' doesn't exist")