Tables
What is a Table?
How to use Tables
Difference between MySQL Table and Dolt Table
Interaction with Dolt Version Control
Example
mysql> show tables;
+----------------+
| Tables_in_docs |
+----------------+
| complex |
| docs |
+----------------+
mysql> alter table complex add column c4 blob;
mysql> show create table complex;
+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| complex | CREATE TABLE `complex` (
`pk1` int NOT NULL,
`pk2` varchar(47) NOT NULL,
`c1` tinyint NOT NULL,
`c2` datetime,
`c3` json,
`c4` blob,
PRIMARY KEY (`pk1`,`pk2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin |
+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+Last updated
Was this helpful?