2)表本身(非表数据)的基本操作:
CREATE TABLE 表名 (列_1_名 列_1_类型 列_1_细节,
列_2_名 列_2_类型 列_2_细节,
...
);...例如:create table student(id int not null,name char(10),age int);
例如:CREATE TABLE t (id INT NOT NULL,...;显示table各字段信息
DROP TABLE t; (删除表)
DROP TABLE t1, t2, t3;
ALTER TABLE t ADD x INT NOT NULL;(增加一列)
ALTER...id,name,age) VALUES(1,'liyaohua',25);
INSERT INTO student (id,name,age) VALUES(2,'fuwenlong',26);
查询...Select * from student;(选择所有列)
Select name from student;(只选name列)
Select name, age from student;(选两列)
条件查询