建表的sql
2024-10-19 11:41:32
1、 创建用户表
create table user(
id int unsigned not null primary key auto_increment comment '自增id',
username char(20) not null default '' comment '用户名',
password char(32) not null default '' comment '密码',
income decimal (10,2) not null default 0.00 comment '收入',
logintime int(10) unsigned not null comment '上次登录时间',
loginip varchar(30) not null comment '上次登录ip',
isOpen tinyint(1) unsigned not null default 0 comment '是否开放',
birthday TIMESTAMP not null default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
) engine myisam default charset utf8 comment '用户表';
note :
1. decimal (10,2) 整数8位,小数2位
最新文章
- Python爬虫学习1
- 聚合及UML表示
- [Oracle] PL/SQL学习笔记
- 重启EBS
- Java 中判断两个对象是否相等
- Zabbix探索:网络设备监控2
- THashMD5,THashSHA1,THashBobJenkins,TIdHashMessageDigest5的用法
- 分布式基础学习(2)分布式计算系统(Map/Reduce)
- go web 第三天 学习笔记 --mysql
- ASP.NET项目答辩系统课件使用中的问题记录
- mongodb3.x主从配置及备份
- 定义对象为什不可以写到while语句外面。VS2017
- 《Linux内核设计与实现》第五章学习笔记
- MySql连接空闲8小时自动断开引起的问题
- github管理开发代码流程
- 使用JDBC从数据库中查询数据的方法
- 整理学习ASP.NET MVC的资源
- J2EE架构
- CentOS 7防火墙开放端口快速方法
- HDUOJ --2566