update questsion

Поиск
Список
Период
Сортировка
Искать

update questsion

От:
"Donald Braman" <donald.braman@yale.edu>
Дата:
I'm trying to update a column to it's orignal contents plus a space plus the
contents of another column.

UPDATE cases
SET citation = citation + ' ' + text(year);

(citation is text type and year is char type, hence the use of text()
function)
I get: Unable to identify an operator '+' for types 'text' and 'unknown'
I can't find any documentation on how to this sort of thing, so any help is
appreciated. -Don

Re: update questsion

От:
ERIC Lawson - x52010 <eric@bioeng.washington.edu>
Дата:
Seattle just shook hard.  

Anyway, I think you want the text concatenation operator, ||

You might need to cast the data to text also.

On Wed, 28 Feb 2001, Donald Braman wrote:

> I'm trying to update a column to it's orignal contents plus a space plus the
> contents of another column.
> 
> UPDATE cases
> SET citation = citation + ' ' + text(year);
> 
> (citation is text type and year is char type, hence the use of text()
> function)
> I get: Unable to identify an operator '+' for types 'text' and 'unknown'
> I can't find any documentation on how to this sort of thing, so any help is
> appreciated. -Don
> 

-- 

James Eric Lawson
Research Publications Editor III
National Simulation Resource

eric@bioeng.washington.edu

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Everyday language is a part of the human organism and is no less 
complicated than it. - Ludwig Wittgenstein (1889-1951) [Tractatus 
Logico-Philosophicus, 1921]


REMOVAL FROM LIST

От:
Designer <wireless@tampabay.rr.com>
Дата:
Sorry to trouble the list, but, the removal instrucions I save, quite
some time ago do not seem to be working....
FAQ