1.修改表明 ALTER TABLE old_table_name RENAME TO new_table_name 2. 修改字段名称 alter table 表名 rename column 原名称 to 新名称 ; alter table TBL_MENU rename column NOTE to memoNote;
添加字段的语法:alter table tablename add (column datatype [default value][null/not null],….);
修改字段的语法:alter table tablename modify (column datatype [default value][null/not null],….);
删除字段的语法:alter table tablename drop (column);
4 给字段加注释 comment on column 表名.字段 is 'xxxxx'; comment on column t_water_temperature_info.sensor_id is '传感器ID';