SQL 한줄에 정보 표시하기 예제
SELECT
A.ATTR1, A.ATTR2
FROM
(
SELECT
NVL( (SELECT 'AAA' FROM DUAL) ,0) AS ATTR1
,NVL( (SELECT 'BBB' FROM DUAL) ,0) AS ATTR2
FROM DUAL
) A
;
또는
SELECT
(SELECT 'AAA' FROM DUAL) AS ATTR1
,(SELECT 'BBB' FROM DUAL) AS ATTR2
FROM DUAL
;
[결과]
----------------------------
ATTR1 ATTR2
AAA BBB
----------------------------
'SQL' 카테고리의 다른 글
Delete Join SQL (0) | 2023.07.04 |
---|---|
sql cheat sheet (0) | 2023.06.15 |
mysql 쿼리툴 추천 (0) | 2015.11.03 |
오라클 함수 등, Orange 단축키 (0) | 2015.02.06 |
오라클 WITH 구문 (0) | 2015.01.15 |