mysql 往外读取的时候不好控制啊 比如说有这样的数据,LOG_MESSAGE和LOG_KEYWORD是blob型。 select LOG_NAME,LOG_SUBJECT,LOG_MESSAGE,LOG_KEYWORD,INPUT_DATE from LOG\G; 有很多行: [code]*************************** 1. row *************************** LOG_NAME: 10.9.1.1 moblie.log LOG_SUBJECT:Log at 200812262250 [ERROR(1)] LOG_MESSAGE: 2008-1-2 22:46:28,199 WARN [authority.service.LoginService#compareLever...
by 小渔村 - Perl - 2008-12-27 20:01:20 阅读(1632) 回复(0)
mysql 能够使用shell往里面插入blob的数据 但是往外读取的时候不好控制啊 比如说有这样的数据,LOG_MESSAGE和LOG_KEYWORD是blob型。 select LOG_NAME,LOG_SUBJECT,LOG_MESSAGE,LOG_KEYWORD,INPUT_DATE from LOG\G; 有很多行: [code]*************************** 1. row *************************** LOG_NAME: 10.9.1.1 moblie.log LOG_SUBJECT:Log at 200812262250 [ERROR(1)] LOG_MESSAGE: 2008-1-2 22:46:28,199 WARN [autho...
SYBASE 12.5 目前所遇问题有: 1.用PB读取A表数据时报 select error :WARNING -Fatal Error 695 occurred at 某个时间,记录相关信息后联系系统管理员。 2.更新修改B表数据提示 select error :WARNING -Fatal Error 644 occurred at 某个时间,记录相关信息后联系系统管理员。 3.BCP A表OUT ,至一定记录数时报错. 4.带条件查询A表时报 “select error:the sql server is terminating this process”但奇怪的是,改动条件缩小结果...
use DBI; $dbh = DBI->connect("dbi:mysql:dbname=test",'root',''); $dbh -> do('set names utf8'); $sth = $dbh->prepare("select * from test"); $sth->execute(); while(@row = $sth->fetchrow_array) { print "@row"."\n"; } $sth->finish; print "@row"; 读出来有中文的都变乱码了 数据库寸的是utf8的 有人知道是怎么回事吗?
package example; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class FileTransfer { public static void main(String[] args) { try { byte imageDataByte[] = new byte[20000]; String stmp = "" ; String hexStr = ""; FileInputStream fis = new FileInputStream(new File("D:\\sh...
java怎样读取类似下面xml中的cdata数据?
小妹以前也没有接触过solaris,现在由于项目原因,要用solaris。 我上午安装了solais 10 for x86 ,在我自己的pc机上。 我也不知道安装时有哪些配置,反正安装完了,要读取光驱,可是不知道怎么读。 请问各位大侠我应该怎么做?
如果有以下程序段:
: vector
向大家求助! 我在win2000下用vc6编一个从blade1.dat文件读实型数据到二维数组points[462][3]中,程序如下 CFile MyFile("blade1.dat",CFile::modeReadWrite|CFile::shareDenyNone); {for(int i=0;i<462;i++) { for(int j=0;j<3;j++) MyFile.Read(&points[j],sizeof(double)); } } 怎么读不进去呀,后来又用了如下程序: FILE *fp; if ((fp=fopen("blade1.dat","rb"))==NULL) { uc1601("Cannot o...