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
Solved

tab char in db2

Posted on 2009-07-07
2
2,492 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
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
#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.

856 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