SQL command EXPORT:
export to dump.txt to del
modified by chardel''
select * from table
About "chardel". Is it possible not to have a character delimiter/qualifier?
Thanks in advance!
Jorrit
SQL command EXPORT:
export to dump.txt to del
modified by chardel''
select * from table
About "chardel". Is it possible not to have a character delimiter/qualifier?
Thanks in advance!
Jorrit
> SQL command EXPORT:
> export to dump.txt to del
> modified by chardel''
> select * from table
> About "chardel". Is it possible not to have a character delimiter/qualifier?
How would export/import be able to distinguish between the string '12345'
and the numeric value 12345, then? How should db2 handle strings like
'abc,def', i.e. where a column delimiter is embedded in the string?
But you can use perl/python/sed/awk to strip out the delimiters from the
resulting file.
--
Knut Stolze
DB2 Spatial Extender
IBM Silicon Valley Lab
delimiter/qualifier?Quote:> SQL command EXPORT:
> export to dump.txt to del
> modified by chardel''
> select * from table
> About "chardel". Is it possible not to have a character
Quote:> Thanks in advance!
> Jorrit
db2 -x "select CHAR(col1) || CHAR(col2) || CHAR(col3) ... from table" >
output.txt
;-)
Regards
Paul Vernon
> db2 -x "select CHAR(col1) || CHAR(col2) || CHAR(col3) ... from table" >
> output.txt
--
Knut Stolze
DB2 Spatial Extender
IBM Silicon Valley Lab
Aye, but you will still get the character delimiter around the singleQuote:> You can also use such a select statement directly in the export command.
I wonder if there is any performance difference between export and select
RegardsQuote:> file ??
> Aye, but you will still get the character delimiter around the single
> concatenated column with export.
Good question. I know there is no difference for the Spatial Extender'sQuote:> I wonder if there is any performance difference between export and select
> > file ??
--
Knut Stolze
DB2 Spatial Extender
IBM Silicon Valley Lab
Please help!!!!!!!!!!!!!!!
Im developing a application which access data on a DB2 database. One
task should be to export data from the database to a file in different
formats. I know the DB2 command ?EXPORT", it would be optimal solution.
The problem is I need such function in my program not as a separate
application call. I studied the SDK for DB2 (Ver. 2.1.2) and I found the
function ?sqluexpr" which performs this operation. Now where is the
problem?
My application is written in Pascal (Delphi3) on Win NT and I cant use
the libraries delivered with the SDK. The only solution (I think) to
solve this problem is to call the function stored in DLL. Then I
translated part of the header Files and tried to call this function in
the DB2Util.dll without success. From the C samples I pointed out that
the function need some kind of runtime environment to work.
How can I do this? Should I call some other functions before that? Which
DLL files are the right?
I am sure it is possible!
Thanks for your help
Peter
2. Can I install SQL Server 6.5 under NT Workstation????
3. sql*loader using db2 exported file
4. Using temp lobs in a function
5. Accessing directly DB2 export files
7. DB2 Export
11. Coding a DB2 export app - dire need of ideas!
12. backup/export/import from DB2 to DB2
13. back up -- import - export -- DB2 to DB2