(Oracle DB) - 22. Operators

kynoh·2023년 3월 26일
0

Oracle Database

목록 보기
26/30
/* Operators */

/* Addition, Subtraction, Multiplication and Division
	#	Addition		:	+
	#	Subtraction		:	-
	#	Multiplication	:	*
	#	Division		:	/
*/

/* Concatenation
	#	|| concatenates two 'strings or numeric data sets'
*/

	/* Test */
SELECT 1010 || 1111 FROM dual;	-- 10101111
SELECT 'Concatenates ' || 'Me!' FROM dual;	--	Concatenates Me!

SELECT
	employee_id || '-' || emp_name
	AS emplyee_info
FROM employees
WHERE ROWNUM < 5
;


/* Relational Operators
	 Left Operand		Right Operand
	#				>					L is greater than R
	#				<					L is less than R
	#				>=					L is greater than or equal to R
	#				<=					L is less than or equal to R
	#				=					L is equal to R
	#				<>					L is NOT equal to R
	#				!=					L is NOT equal to R
	#				^=					L is NOT equal to R
*/


/* Set Operators (Chapter 5)
	#	UNION
	#	UNION ALL
	#	INTERSECT
	#	MINUS
*/


/* Hierarchical Operators (Chapter 7)
	#	PRIOR
	#	CONNECT_BY_ROOT
*/
profile
On-orbit

0개의 댓글

관련 채용 정보