at 语法 ==注意,输入at之后便进入命令行模式 ------- 不管怎么样,只会执行一次。[test @test test]# at [-m] TIME (输入工作指令)[test @test test]# atq (查看当前工作流程)[test @test test]# atrm ...
分类:
系统相关 时间:
2014-07-22 22:53:16
阅读次数:
295
场景先看段代码,考虑以下场景,其运行结果是什么?public class Test { static int i = 8; public void printI() { int i = 88; System.out.println(this.i); } ...
分类:
其他好文 时间:
2014-07-19 18:33:22
阅读次数:
232
#现有环境是一主一从,需要再增加一台从库,具体方法如下:同步test数据库主:192.168.3.203从1:192.168.3.210从2:192.168.3.2111.在主服务器203上面为210和211建立账户。mysql-uroot-p123grantreplicationslaveon*.*to‘backup‘@‘192.168.3.210‘identifiedby‘backup‘;grantreplic..
分类:
数据库 时间:
2014-07-19 16:32:30
阅读次数:
223
场景先看段代码,考虑以下场景,其运行结果是什么?public class Test { static int i = 8; public void printI() { int i = 88; System.out.println(this.i); } ...
分类:
其他好文 时间:
2014-07-19 14:07:59
阅读次数:
159
作用:
批处理中调用另一个批处理或调用行号后的所有命令
格式:
call [FileName] [:label]
demo:
call.bat:
@echo off
echo 开始调用called
type hello.txt
echo 结束调用called
test.bat
@echo off
echo 准备调用called...
一、静态库的创建和使用
1. 静态库创建
(1)首先创建工程test,测试代码如下:
1) test.h
void test_print();
2) test.cpp
#include "test.h"
#include
void test_print()
{
printf("test_print in static lib."...
今天有一开发兄弟找我,说出现一奇怪现象,在存储过程中赋date类型的值,时、分、秒都丢失了,下面来做个试验:
SQL> drop table test purge;
SQL> create table test
(
fill_date date
);
SQL> insert into test values(sysdate);
SQL> commit;
...
分类:
数据库 时间:
2014-07-19 08:23:15
阅读次数:
269
public class Test {
private static final SimpleDateFormat FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:dd");
public static void main(String[] args) throws SQLException {
oracle.sql.TIMESTAMP t...
分类:
数据库 时间:
2014-07-19 08:00:40
阅读次数:
209
Lua版本:5.2.3
一 C++ 调用Lua
1 目录结构
CppCallLua
{
main.cpp
script{
test.lua
}
lualia{
lua.h
lualib.h
laux.lib.h
luaconf...
分类:
编程语言 时间:
2014-07-19 02:43:35
阅读次数:
222
时常,某个程序或软件并没有语法错误,并且你检查它的相关内容也确实没有发现问题。这是因为你用普通文本编辑器软件来查看的时候,有许多字符没有显示出来,但在终端使用cat命令可以很容易地检测出是否存在这些字符。
~首先,我们创建一个简单的文本文件,写入一些特殊字符。打开终端,运行命令:
printf 'testing\012\011\011testing\014\010\012more test...
分类:
系统相关 时间:
2014-07-19 02:16:15
阅读次数:
339