随笔分类 -  mysql

摘要:人员表people 字段:id,peopleNumber,name,namePinyin,sex,birthday,nation。namePinyin不用填写,根据name自动生成。wordlib为字库表,内容为文字拼音对照创建表create table people(id int auto_increment primary key,peopleNumber varchar(18),name varchar(20),namePinyin varchar(50),sex varchar(4),birthday date,nation varchar(30))character set utf8 阅读全文
posted @ 2014-04-09 09:56 ywl01 阅读(441) 评论(0) 推荐(0)
摘要:环境情况:表1:residential_building,住宅楼表:id,community(所属社区),countFloor(楼层数),countUnit(单元数),countHomesInUnit(每单元户数),buildingName(楼栋名称)表2:homeNumber,住户表 id,buildingID(表1的id),homeNumber根据表1楼栋信息,自动填充表2中每个房间号的内容创建表1:drop table if exists residential_building;create table residential_building(id int not null auto 阅读全文
posted @ 2014-04-02 13:22 ywl01 阅读(228) 评论(0) 推荐(0)