MySQL增删改查
发布日期:2021-05-14 05:51:06 浏览次数:19 分类:精选文章

本文共 1397 字,大约阅读时间需要 4 分钟。

���������������������

������ ������

1��� ���������

������������������������������������������������������

alter table t1  add column name nvarchar(4);

���������������������������������������������������������������������������

alter table t1  add column id int not null primary key auto_increment;

2��� ������������

������������������������������������������������������������������������������

insert into t1 (id, name, grade)  values (1, '������', 98);

������������������������������������������������������������������������

insert into t1 (���������1, ���������2, ...)  select (���������1, ���������2, ...)  from t2;

3��� ���������

���������������������������������������������

  • ���������������������������������������
  • create table t1  select * from t2;
    1. ������������������������������������������
    2. create table t1  select * from t2  where 1 = 2;

      ������ ������

      ������������������������������������������������������

      alter table tableName  drop column columnName;

      ������ ���

      1��� ������������

      ������������������������������������������������������������������

      alter table tableName  change columnName char(10) not null;

      2��� ������������������

      ������ update ��� join ������������������������������������������������������������������������

      update a  join b on a.bid = b.id  set a.x = b.x,      a.y = b.y;  where a.id = 1;

      ������������������������������������������ join ���������������������������

    上一篇:权限细粒度之参数控制,不同人看到报表模板不同
    下一篇:指标开发图标配色和图标类型选择建议

    发表评论

    最新留言

    感谢大佬
    [***.8.128.20]2025年04月11日 04时31分25秒