随笔分类 - SQL
摘要:--增加大字段项 alter table 表名 add hehe clob; --将需要改成大字段的项内容copy到大字段中 update 表名 set hehe=name1; --删除原有字段 alter table 表名 drop column name1; --将大字段名改成原字段名 alter table 表名 rename column hehe to na...
阅读全文
摘要:SQL 条件语句使用不等于‘<>’的筛选条件,会将字段为null的数据也当做满足不等于的条件而将数据筛选掉。 用 select * from table where name<>1查询时得到的结果为: 第三列为null也会被筛选掉
阅读全文

浙公网安备 33010602011771号