
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;
- ������������������������������������������
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秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
【vue】setInterval的嵌套实例
2021-05-15
【SpringBoot】如何配置热部署
2021-05-15
【rabbitMQ】04 如何实现高可用?
2021-05-15
【自考】之信息资源管理(一)
2021-05-15
C# 文本框限制大全
2021-05-15
setup facatory9.0打包详细教程(含静默安装和卸载)
2021-05-15
ionic4 路由跳转传值
2021-05-15
CSDN 怎么写出好看的博客
2021-05-15
ENDC含义
2021-05-15
Java基本概念:方法
2021-05-15
pwn题shellcode收集
2021-05-15
使用docker搭建nfs实现容器间共享文件 nfs server nfs client
2021-05-15
CURL 发送请求详解
2021-05-15
python中的序列化
2021-05-15
django中使用celery执行异步任务实现
2021-05-15
区块链初步了解
2021-05-15
centos7安装telnet服务
2021-05-15