1.最近用hibernate
学会很多知识,总结如下:(1)数据库表格已经设置默认值,在进行数据插入的时候,bean里面不赋值的话,插入之后该字段依旧是null是因为hibernate默认插入和更新所有字段,如果某些字段不需要操作,需要配置下(i)xml文件配置方式:
加入insert="f...
分类:
系统相关 时间:
2014-05-05 23:52:08
阅读次数:
563
2014年4月31日添加数据:$sql ="INSERT INTO `rb`.`move_table`
(字段名) VALUES (字段值)";require("MyRequireFile.php"); 这个函数放在最前面limit
第几条开始,显示几条readonly 只读isset...
分类:
Web程序 时间:
2014-05-05 23:40:29
阅读次数:
402
方法一:wireshark是无法抓取到数据包的,需要通过设置才可以。 具体方法如下:
①:以管理员身份运行cmd ②:route add 本机ip mask 255.255.255.255 网关ip
还需要设置路由器(不知道咋设置,知道的仁兄能否告之一下)才能利用wireshark抓本地包。方法.....
Given two binary strings, return their sum
(also a binary string).For example,a ="11"b
="1"Return"100".思路:一个二进制字符串相加;首先从字符串的末尾开始,先二进制字符转化为数字,然后再相加;然后将...
分类:
其他好文 时间:
2014-05-05 23:10:15
阅读次数:
319
ERROR:ORA-28002: the
password will expire within 7 days
错误是提示密码快过期了,有两个办法解决这个问题。
一. 修改已经报错用户的密码
已经被报告了密码快要过期的账户必须再改一次密码(需要DBA权限)
以system用户为例
sqlplus / as sysdba
alter user system identi...
分类:
数据库 时间:
2014-05-03 17:27:50
阅读次数:
460
#include
#include
#include
#include
#include
using namespace std;
#define N 20020
struct node{
int from, to, dou, nex;
}edge[N];
int head[N], edgenum;
void add(int u, int v,int dou){
node E={u,v,dou...
分类:
其他好文 时间:
2014-05-03 15:25:32
阅读次数:
340
HDU 2063
求一个二分图的最大匹配。
完全的裸题。贴代码。
#include
#include
#include
#include
#include
using namespace std;
vector G[1005];
bool check[1005];
int mac[1005];
int n;
void add_edge(int from,int to)
{
G[f...
分类:
其他好文 时间:
2014-05-02 20:57:04
阅读次数:
359
一、创建命令 1、克隆一个git仓库 git clone 地址 2、建立一个新的本地git仓库
git init二、本地修改命令 1、查看仓库当前状态 git status 2、查看文件与上一个版本的差异 git diff 3、将修改加入暂存区 git
add...
分类:
其他好文 时间:
2014-05-02 14:57:26
阅读次数:
271
去除win7电脑系统桌面图标的快捷方式的小箭头:
首先在桌面新建一个文本文档,设为去除箭头.txt,第二步,把如下代码粘贴到文档中。
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\image...
Given a sorted array and a target value, return
the index if the target is found. If not, return the index where it would be if
it were inserted in or...
分类:
其他好文 时间:
2014-05-02 09:54:11
阅读次数:
269