摘要:
修改列名 alter table 表名 rename column 旧列名 to 新列名; 修改列类型 alter table 表名 modify (列名varchar(255)); 删除表某一列 alter table 表名 drop column 列名 给表增加一列 alter table 表名 阅读全文
摘要:
单一索引:Create Index On <Table_Name>(Column_Name); 复合索引: Create Index i_deptno_job on emp(deptno,job); —>在emp表的deptno、job列建立索引。 阅读全文