用一条修改语句即可:update t_content set f_body=rawtohex(f_check) where f_type in (0,4)此处须用rawtohex()函数将f_check转成16进制,不然会报ORA-01465: invalid hex number(ORA-0146...
分类:
其他好文 时间:
2015-07-02 15:37:24
阅读次数:
134
#include #include #include #include using namespace std;bool check_sudoku(const vector& input);int coordtoidx(int row, int col);void extract_row(const...
分类:
编程语言 时间:
2015-07-02 12:00:28
阅读次数:
193
应用场景: 获取两个字符串所有公共的子串。
思路: 1. 先获取两个子串的交集
2. 遍历交集子串,从最短子串到最长子串
public static List getAllCommonSubStrings(String str1, String str2) {
//TODO null check.
Strin...
分类:
编程语言 时间:
2015-07-01 18:12:35
阅读次数:
155
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.题目的意图It seems that it is not to check betwe...
分类:
其他好文 时间:
2015-07-01 17:35:29
阅读次数:
132
触发器是一种特殊类型的存储过程,它不同于之前的我们介绍的存储过程。触发器主要是通过事件进行触发被自动调用执行的。而存储过程可以通过存储过程的名称被调用。Ø 什么是触发器 触发器对表进行插入、更新、删除的时候会自动执行的特殊存储过程。触发器一般用在check约束更加复杂的约束上面。触发器和普通的存储过...
分类:
数据库 时间:
2015-07-01 11:55:46
阅读次数:
199
#pragma check_stack( off)LPVOID __cdecl _memcpy(void * dst, void* src, size_t size){ int dwSize = size/4; int byteSize = size%4; __asm{ mov edi,ds...
分类:
其他好文 时间:
2015-07-01 11:36:00
阅读次数:
205
这几天在搞数据的本地备份和远程备份的事情,用到了sersync这个国产的同步工具,可是发现他托管在google code,需要fanqiang才能下载, 于是就弄了一个github的镜像,顺便把64位的二进制包也放到上面,这样安装时候直接wget就好了。sersync github镜像
sersync 下载地址
wget --no-check-certificate https://raw.gith...
分类:
其他好文 时间:
2015-06-30 18:15:55
阅读次数:
176
线上是用Nagios监控的,版本是最新版4.0.8在nagios服务器上面下载redis插件下载地址页面https://exchange.nagios.org/directory/Plugins/Databases/check_redis-2Epl/details下载check_redis.pl文件安装perlredis环境[root@localhost~]#yuminstall-yperl-CPANperl-Time-HiRespe..
分类:
移动开发 时间:
2015-06-30 13:14:27
阅读次数:
228
#!/bin/bash
read-p"thescriptwillbeinstalllamp,ifyouwanttocontinue,pressyes:"press
if[$press==yes];then
echo"lamp(mysql-5.6.24,httpd-2.4.12,php-5.6.10)willbeinstallinaminute..."
sleep10
check_ok(){
if[!$?==0]
then
echo"error,checktheerrorlog."
exit1
fi
}
..
分类:
其他好文 时间:
2015-06-30 13:12:38
阅读次数:
145
1. 在admin.js中添加扩展验证的操作checkNamevar checkUrl = "./hytc/AdminAction_check.action";2. 在admin_select.jsp中调用 data-options="required:true,validType:{checkN....
分类:
Web程序 时间:
2015-06-30 12:25:22
阅读次数:
151