全部博文(21)
分类: Mysql/postgreSQL
2009-10-14 11:33:27
chinaunix网友2009-11-07 23:53:59
Dim My_Stream As ADODB.Stream Set My_Stream = New ADODB.Stream My_Stream.Mode = adModeReadWrite My_Stream.Type = adTypeBinary My_Stream.Open My_Stream.LoadFromFile FileName pAdoRS.Fields("二进制字段").Value = My_Stream.Read My_Stream.Close
chinaunix网友2009-11-07 23:51:37
用ado,将连接字符串改为 "DRIVER={PostgreSQL Unicode};DATABASE=xxx;SERVER=xxx;PORT=5432;UID=xxx;PWD=xxx;ByteaAsLongVarBinary=1" 一定要加ByteaAsLongVarBinary=1