If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > SQL Query:TEXT Data Type Operators

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-04, 05:03
falcao75 falcao75 is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
SQL Query:TEXT Data Type Operators

If anyone could help me on this i would really appretiate it.

It's basically a stupid problem, that i am really not understanding.

I'm making a query on a table named 'News'
In this table 2 of the fields i have are:
date type DATE
news type TEXT

I am now making a query, and adding a 3 column.
On this 3rd column i want to add a few words to the TEXT variable.
And that's when my problem starts!

If i had 2 char variables, i could do like 'abc' + 'def' and i would have the result 'abcdef'.

But how to add a few lines of text to a TEXT data type variable???
Can't find the solution anywhere. Just a few words on the end of the TEXT variable.

Basically what i will want after that problem is solved is to convert the data to string and add it to the news TEXT variable.... simple as that.... on every line.

This should be simple, except i don't know what are the TEXT data type OPERATORS and FUNCTIONS...

well... i think this is simple now to understand... but in any case I'll be around to explain better anything you need to help me.

Thanks in advance to all!
Reply With Quote
  #2 (permalink)  
Old 11-24-04, 07:26
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
database systems sometimes have different syntax for dealing with text columns

for example, some use + for concatenation, some use || (which is the standard), and some even have special syntax, like mysql's concat function

in this instance i suggest you post your question in (or ask the moderators to move this thread to) the forum which deals with your particular system

this forum is for non-specific sql
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On