MYSQL基本命令(二)
来源:互联网 发布:淘宝商城童装女童鞋子 编辑:程序博客网 时间:2024/05/16 15:14
- delete from user where id>10; 删除id>10的记录
- alter table user anto_increment=10; 设置user表的自增字段起始值为10
- 表字段自我复制:insert into user select * from user;
*如果表有自增字段,自增字段是不能复制的,代码改为:insert into user(name,pass) select name,pass from user;
4. update user set name='admin' where name is null; 更新表字段
5. 添加表字段:alter table user add pid int(11);
6. 删除表字段:alter table user drop pid;
阅读全文
0 0
- MYSQL基本命令(二)
- MYSQL常用命令(二) 基本操作命令
- DOS基本命令(二)
- Linux基本命令(二)
- Linux基本命令(二)
- Redis基本命令(二)
- MySQL基本命令(WINDOWS)
- MYSQL基本命令(一)
- MySQL基本命令(转)
- MYSQL基本操作(二)
- Mysql基本操作(二)
- MySQL基本操作(二)
- mysql命令大全(二)
- mysql操作命令(二)
- Mysql 数据库学习 (二) Mysql命令
- Windows PowerShell基本命令总结(二)
- Linux学习------基本命令(二)
- Linux基本命令学习(二)
- Feel free to mail me: yu_tian_jian@sina.cn
- C++中二维数组作函数形参
- [Leetcode] 297. Serialize and Deserialize Binary Tree 解题报告
- HDU2444_The Accomodation of Students _染色法判二分图&邻接矩阵二分图匹配模板
- Eclipse使用问题及解决办法
- MYSQL基本命令(二)
- [leetcode]12. Integer to Roman(Java)
- 1610: [Usaco2008 Feb]Line连线游戏
- 解决 Chrome最新版右键工具中的"编码"修改功能没有了的工具
- C语言的简单应用(四)
- 找餐饮设计公司 这些要了解透彻
- 4.关于QT中的QFile文件操作,QBuffer,Label上添加QPixmap,QByteArray和QString之间的区别,QTextStream和QDataStream的区别,QT内存映射(
- 【2-SAT+Tarjan】POJ3207 Ikki's Story IV
- python + sklearn ︱分类效果评估——acc、recall、F1、ROC、回归、距离