MySQL备忘录
来源:互联网 发布:linux中rpm文件 编辑:程序博客网 时间:2024/06/06 07:08
- 进入mysql
mysql -u root -p
- 更改默认编码方式为UTF-8
http://blog.csdn.net/red4711/article/details/6007248 - 备份和还原
http://blog.csdn.net/quietprofound/article/details/2947197 - 常见指令
show databases; --显示当前数据库create database mybuaa; --新建数据库use mybuaa; --使用数据库--创建数据表drop table if exists entries;create table entries ( id integer primary key auto_increment, amount integer not null, description text not null, money integer not null, people text not null, exedate date not null);insert into entries values(1,-255,'水费',-140,'孟德超',CURDATE());--增delete from entries where id = 1; --删update entries set people = "孟德超" where id = 1;--改select people,exedate from entries where id = 1;--查drop table entries; --删除表单drop mybuaa; --删除数据库
- 其他
数据类型:http://www.runoob.com/mysql/mysql-data-types.html
外键:http://www.cppblog.com/wolf/articles/69089.html
0 0
- mysql备忘录
- mysql备忘录
- mysql备忘录
- MySQL 备忘录
- MySQL备忘录
- MySQL备忘录
- Mysql备忘录
- mysql备忘录
- Mysql开发备忘录
- Mysql常用命令备忘录
- 【MySQL/Mariadb】SELECT备忘录
- Mysql备忘录1
- php操作mysql示例备忘录
- mysql数据库sql语句备忘录
- mysql字符串转数字---备忘录
- 备忘录
- 备忘录
- 备忘录
- enter键触发查询 通用代码
- echo
- 获取设备id
- pandas.read_sql(),读取sqlite3保存的数据说明
- 转载--网页性能管理详解
- MySQL备忘录
- VS2010出现如下链接错误:LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- STM32F4_TIM基本延时(计数原理)
- iOS中四种存储方式
- iOS-多线程之NSOperation
- AppCan4.0:开发者要做有价值的APP
- html (jsp )表单元素总结
- 我的activemq JDBC Master Slave主从和持久化配置过程
- 编程技巧 - 9