You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
status ENUM('pending', 'approved', 'rejected') DEFAULT 'pending'
61
+
);
62
+
63
+
-- Table with special characters in names
64
+
CREATETABLEIF NOT EXISTS mysql_table7
65
+
(
66
+
id INT AUTO_INCREMENT PRIMARY KEY,
67
+
`name_with_underscores`VARCHAR(255),
68
+
`name-with-dashes`VARCHAR(255),
69
+
description TEXT,
70
+
binary_data BLOB
71
+
);
72
+
73
+
-- Table with nullable columns
74
+
CREATETABLEIF NOT EXISTS mysql_table8
75
+
(
76
+
id INT AUTO_INCREMENT PRIMARY KEY,
77
+
nullable_string VARCHAR(255) NULL,
78
+
nullable_int INTNULL,
79
+
nullable_timestamp TIMESTAMPNULL,
80
+
required_field VARCHAR(255) NOT NULL
81
+
);
82
+
83
+
-- Table with numeric types
84
+
CREATETABLEIF NOT EXISTS mysql_table9
85
+
(
86
+
id INT AUTO_INCREMENT PRIMARY KEY,
87
+
tiny_int TINYINT,
88
+
small_int SMALLINT,
89
+
medium_int MEDIUMINT,
90
+
big_int BIGINT,
91
+
float_val FLOAT,
92
+
double_val DOUBLE,
93
+
decimal_val DECIMAL(10, 2)
94
+
);
95
+
96
+
-- Table with date/time types
97
+
CREATETABLEIF NOT EXISTS mysql_table10
98
+
(
99
+
id INT AUTO_INCREMENT PRIMARY KEY,
100
+
date_col DATE,
101
+
time_col TIME,
102
+
datetime_col DATETIME,
103
+
timestamp_col TIMESTAMP,
104
+
year_col YEAR
105
+
);
106
+
40
107
-- Insert sample data
41
-
INSERT INTO mysql_table1 (name, about, banned) VALUES ('John Doe', 'Lorem ipsum dolor sit amet', 0), ('Jane Doe', 'Lorem ipsum dolor sit amet', 1), ('Alice', 'Lorem ipsum dolor sit amet', 0), ('Bob', 'Lorem ipsum dolor sit amet', 1), ('Charlie', 'Lorem ipsum dolor sit amet', 0);
0 commit comments