그래서 내가 하고 싶은 건 기본적으로 표시할 수 있습니다 (전체 행일 한 열에):
내가 좋아하는 케이크 [유형 열] 와 [착빙 열] 와 [생산하시니 열].
결과는 다음과 같습니다.
Cake_Column
----------------
I like chocolate cake with whipped_cream and a cherry.
I like strawberry cake with vanilla_cream and a lemon_slice.
etc.
etc.
데릭쉐퍼드와 기술서임을 않는 일종의 TO_CHAR ([열] ", 일부 text". [열]) " new_column_name";;
내가 어떻게 알아?
Oracle 에 연결하면 문장열 대한 두 가지 옵션이 있습니다.
CONCAT 예:
CONCAT(
CONCAT(
CONCAT(
CONCAT(
CONCAT('I like ', t.type_desc_column),
' cake with '),
t.icing_desc_column),
' and a '),
t.fruit_desc_column)
'' 사용 예:
'I like ' || t.type_desc_column || ' cake with ' || t.icing_desc_column || ' and a ' || t.fruit_desc_column
[연결, Oracle 에서 작동자 문서용으로 > > >;] [1]
[1]: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/fundamentals.htm # 시라프헤이그
쿼리하지 아래에 작동됨 가져다줄래요 @Oracle oracle10g -
select PHONE, CONTACT, (ADDR1 || '-' || ADDR2 || '-' || ADDR3) as Address
from CUSTOMER_DETAILS
where Code='341';
O/P - >. 1111년 4 케이프 타운 sa 가 [email protected]
이 기능을 이용하면 CONCAT '' Oracle / 플스크라 '' 두 문자열을 연결할 수 없었다.
CONCAT( string1, string2 )
>. string1 >. >. 첫 번째 연결 문자열을. >. >. string2 >. >. 두 번째 연결 문자열을.
E. g.
SELECT 'I like ' || type_column_name || ' cake with ' ||
icing_column_name || ' and a ' fruit_column_name || '.'
AS Cake FROM table;