创建一张学生信息表,往表中插入数据:
CREATE TABLE students (
tscode INT NOT NULL AUTO_INCREMENT,
tsname VARCHAR(20) NOT NULL,
tsaddress VARCHAR(20) DEFAULT '未知',
tsgrade INT,
tsemail VARCHAR(20),
tssex BIT,
PRIMARY KEY(tscode)
);
创建一张学生信息表,往表中插入数据:
CREATE TABLE students (
tscode INT NOT NULL AUTO_INCREMENT,
tsname VARCHAR(20) NOT NULL,
tsaddress VARCHAR(20) DEFAULT '未知',
tsgrade INT,
tsemail VARCHAR(20),
tssex BIT,
PRIMARY KEY(tscode)
);