🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2587

SQL SELECT -- Combine 2 columns

#2587
From: Rainer Welzel
Date: Sat, 19 Apr 2003 13:13
16 lines
1203 bytes
Hi ,
I failed to combine 2 fields  with the following statement:

ADOQueryIND->SQL->Add("SELECT Name, City & ', ' & Country AS Location FROM
tblIndi");

also

ADOQueryIND->SQL->Add("SELECT Name, City || ', ' || Country AS Location FROM
tblIndi");

this statement failed.

Have anybody the right syntax ??

thx rainer
Technical Details
Message-ID: <3ea14b69@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,2ea9fd8801400070,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-19 06:16:14 PST
From: "Rainer Welzel" <rainer@fgg-welzel.de>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: SQL SELECT -- Combine 2 columns
Date: Sat, 19 Apr 2003 15:13:10 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.235.149.189
Message-ID: <3ea14b69@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050757993 217.235.149.189 (19 Apr 2003 06:13:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail