Re: Combining output of several fields in SQL query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/12/06, Allan Kamau <kamauallan@xxxxxxxxx> wrote:
create table tableA(
s_l_p_p_v_i text not null,
field1 text not null,
field2 text not null,
primary key(field1,field2));

s_l_p_p_v_i field1 field1
abc         2      1
xyz         2      4
klm         2      3

Your initial query:

select field2||'_'||field1 from tableA;

works perfectly for me:

?column?
4_2
1_2
3_2

Are you sure you are not getting the correct results?

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux