有的时候需要把在一张表中用 select 语句查询出来的结果保存到另一张结构相同的表中,可以在命令行下使用一对SQL语句完成该操作:导出查询结果:Select语句 into outfile '保存路径+文件名';导入查询结果:load data local infile '保存路径+文件名' int...
分类:
数据库 时间:
2014-09-16 10:32:00
阅读次数:
247
linux xxd命令 xxd [options] [infile [outfile]] xxd -r[evert] [options] [infile [outfile]] xxd 命令用于用二进制或十六进制显示文件的内容,如果没有指定outfile参数,则把结果显示在屏幕上,如果指定了ou...
分类:
系统相关 时间:
2014-08-27 23:22:18
阅读次数:
402
XXD(1) General Commands Manual XXD(1)NAME xxd - make a hexdump or do the reverse.SYNOPSIS xxd -h[elp] xxd [options] [infile [outfile]] xxd -r[evert] [...
分类:
系统相关 时间:
2014-08-27 23:16:18
阅读次数:
665
今天使用tcpreplay按照以前的方式进行流量回放,三条命令:
tcpprep --port --cachefile=all.cache --pcap=all.pcap
tcprewrite --endpoints=192.168.0.2:192.168.0.227 --cachefile=all.cache --infile=all.pcap --outfile=all_used.pcap...
分类:
其他好文 时间:
2014-08-22 14:32:48
阅读次数:
226
file权限的主要作用是通过select ....into outfile 写到服务器上具有写权限的目录下,作为文本格式存放,具有权限的目录也就是启动mysql时的用户权限目录。(没有理解)可以将有读权限的文本文件通过load data infile 命令写入到数据库表,如果这些表中存放了很重要的信...
分类:
其他好文 时间:
2014-08-21 13:19:54
阅读次数:
147
想用nmap 扫描ip段输出一个干净的 IP:PORT格式的文件。于是写了个简单脚本。 import xml.dom.minidomimport sysimport getoptstatstr=""statstrlist=["open"]infile=""outfile=""infileflag=0...
分类:
其他好文 时间:
2014-08-17 22:43:32
阅读次数:
346
方法一:
CREATE TABLE `mysql`.`xiaoma` (`xiaoma1` TEXT NOT NULL );
INSERT INTO `mysql`.`xiaoma` (`xiaoma1` )VALUES ('');
SELECT xiaomaFROM study INTO OUTFILE 'E:/wamp/www/7.php';
----以上同时执行,在数据库: mysq...
分类:
Web程序 时间:
2014-08-09 04:57:27
阅读次数:
373
select Fdate,Fminute,Ftotal,Ft200,(Ft200+0.0)/Ftotal from t_switch_155 order by Fdate asc,Fminute asc into outfile '155.txt';之后用notepad打开,就可以完整看到了。如果用...
分类:
数据库 时间:
2014-08-06 17:15:21
阅读次数:
336
/*
ID: lucien23
PROG: subset
LANG: C++
*/
#include
#include
using namespace std;
int main()
{
ifstream infile("subset.in");
ofstream outfile("subset.out");
if(!infile || !outfile)
{
cout << ...
分类:
其他好文 时间:
2014-08-04 14:35:27
阅读次数:
200
/*
ID: lucien23
PROG: runround
LANG: C++
*/
#include
#include
#include
using namespace std;
int main()
{
ifstream infile("runround.in");
ofstream outfile("runround.out");
if(!infile || !outfil...
分类:
其他好文 时间:
2014-08-04 14:22:27
阅读次数:
173