Complete the code to create a column that stores fixed-length character data of length 10.
CREATE TABLE users (username [1](10));
The CHAR(10) type stores fixed-length character data of length 10.
Complete the code to create a column that stores variable-length character data up to 255 characters.
CREATE TABLE products (description [1](255));
The VARCHAR(255) type stores variable-length character data up to 255 characters.
Fix the error in the code to create a column for long text without length limit.
CREATE TABLE articles (content [1]);The TEXT type stores long text without a length limit, so no number is needed.
Fill both blanks to create a table with a fixed-length code and a variable-length name.
CREATE TABLE items (code [1](5), name [2](100));
CHAR(5) is for fixed-length codes, and VARCHAR(100) is for variable-length names.
Fill all three blanks to create a table with a fixed-length ID, a variable-length title, and a long text body.
CREATE TABLE posts (id [1](8), title [2](200), body [3]);
CHAR(8) for fixed-length ID, VARCHAR(200) for variable-length title, and TEXT for long body text.