这次完整地介绍图片上传的完整解决方案,如有bug,后续再补充。一、图片表CREATE TABLE `photo` (
`id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
`bizid` bigint(11) NOT NULL DEFAULT '-1' COMMENT '业务id,比如项目的id',
`cover` int(11) DEFA...
分类:
Web程序 时间:
2015-10-27 13:28:19
阅读次数:
261
关于回复的功能我是参考了别人的设计库表而得到的,以下是数据库表的设计结构,我来简述一下其原理,表结构见下表。 字段名含义其它idauto_increase自增IDto_comment_id回复的评论id默认为0 ,只是回复文章,不回复用户to_user_id回复的用户iduser_id用户的i...
分类:
其他好文 时间:
2015-10-26 20:47:33
阅读次数:
199
DOM 中,共有 12 中不同类型的节点,nodeType 的取值以数值表示。节点类型描述子节点1Element表示元素。Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference2Attribute表示属...
分类:
其他好文 时间:
2015-10-26 13:41:21
阅读次数:
139
10.25HDU 4117GRE Words卡了很久的一个题目。比较综合。看了很久题解还是各种写挫。 1 #pragma comment(linker, "/STACK:102400000,102400000") 2 #include 3 #include 4 #include 5 ...
分类:
其他好文 时间:
2015-10-25 10:51:58
阅读次数:
173
1 target_type 2 Name Value target_param1 target_param2 target_param3 target_x target_y target_z target_o Comment 3 SMA...
分类:
其他好文 时间:
2015-10-22 19:12:56
阅读次数:
115
// IOCP2.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "WS2_...
商品类型管理:先要创建商品类型的表,用来存储商品类型的信息。create table i_type( id tinyint unsigned primary key auto_increment, type_name varchar(32) not null comment '商品类型的名称', i...
分类:
数据库 时间:
2015-10-20 22:53:55
阅读次数:
769
1 // CaptureData.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include 6 #include 7 #include //SIO_RCVALL头文件 8 9 #pragma comment(...
分类:
其他好文 时间:
2015-10-19 19:06:06
阅读次数:
252
mysql中有的属性:NOLL/NOT NULL,default,comment,primary key,unique key,auto_increment查询字段为空的字段:select × from stuent where sex is null;default :默认值:comment :....
分类:
其他好文 时间:
2015-10-18 11:18:17
阅读次数:
151
useradd
[options]USERNAME-uUID指定用户ID,大于500-gGID(基本组),组必须存在-GGID,…,…(附加组,可以有多个)-c"COMMENT"注释信息-d/path/to/somedirectory指定家目录-s
/bin/bash指定shell路径SHELL环境变量echo$SHELL-m-k(/etc/skel/中的文件拷贝到创建的家目录中)强制为..
分类:
系统相关 时间:
2015-10-18 01:25:33
阅读次数:
293