Solved

tab char in db2

Posted on 2009-07-07
2
2,645 Views
Last Modified: 2013-12-06
I want to concat a tab char in a DB2 sql statement..... Any ideas ???
db2 "select c.nombre,'\t',pel.nombre,'\t',prog.fecha,'\t',prog.hora from tableA as c, tableB as prog, tableC as pel where c.field1=prog.field1 and pel.field2= prog.field2 and prog.field2 in(3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,40,41,42,43,44,74,98,104,112,130,132,135,136,145,   154,155,168,169,171,178,180,188,189,190,191,192,193) and prog.field3 >=current date order by c.nombre asc"

Open in new window

0
Comment
Question by:vcarrillor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 500 total points
ID: 24797005

Hi vcarrillor,

The '\t' signature isn't universal, and DB2 doesn't use it.  use chr(9) instead.

SELECT name, chr(10), .....


Good Luck,
Kent
0
 
LVL 37

Expert Comment

by:momi_sabag
ID: 24797469
it depends on the platform you are using
and on the character set
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question