Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem to concatenate strings in SQL-statements 1

Status
Not open for further replies.

PascalKlaus

Programmer
Feb 20, 2002
32
0
0
DE
Is there a common resolution to concatenate strings in SQL-statements on both Oracle and SQL-Server databases.
It doesn't work with "concat", "+" or "||" on both databases.
I don't want to work with:
if IsOracle then ...

 
are you asking if there is a common function that you can use to concatenate strings if the database is SQL Server or Oracle? I don't think so, but you could always just return the single fields & concatenate in the Delphi code, or alternatively create a calculated field in the query that combines them for you if you need the information in a DBGrid.

HTH


Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top