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位

最新文章

  1. Python爬虫学习1
  2. 聚合及UML表示
  3. [Oracle] PL/SQL学习笔记
  4. 重启EBS
  5. Java 中判断两个对象是否相等
  6. Zabbix探索:网络设备监控2
  7. THashMD5,THashSHA1,THashBobJenkins,TIdHashMessageDigest5的用法
  8. 分布式基础学习(2)分布式计算系统(Map/Reduce)
  9. go web 第三天 学习笔记 --mysql
  10. ASP.NET项目答辩系统课件使用中的问题记录
  11. mongodb3.x主从配置及备份
  12. 定义对象为什不可以写到while语句外面。VS2017
  13. 《Linux内核设计与实现》第五章学习笔记
  14. MySql连接空闲8小时自动断开引起的问题
  15. github管理开发代码流程
  16. 使用JDBC从数据库中查询数据的方法
  17. 整理学习ASP.NET MVC的资源
  18. J2EE架构
  19. CentOS 7防火墙开放端口快速方法
  20. HDUOJ --2566

热门文章

  1. context-param引发spring容器以及servlet容器的关联
  2. PHP实现站点pv,uv统计(二)
  3. openssl安装
  4. Android画柱状图,圆形图和折线图的demo
  5. 如何定义java中的类
  6. canvas小知识
  7. PHP Header 缓存 --- Header 参数说明
  8. Informatica9.6.1在Linux Red Hat 5.8上安装遇到的有关问题整理_3
  9. POI取消科学计数法
  10. hibernate 建表一对一 就是一对多,多的一方外键唯一unique