Collections:
Select Some Columns from a Table in Oracle
How To Select Some Columns from a Table in Oracle?
✍: FYIcenter.com
If you want explicitly tell the query to some columns, you can specify the column names in SELECT clause. The following select statement returns only two columns from the table "departments":
SQL> SELECT location_id, department_name FROM DEPARTMENTS;
LOCATION_ID DEPARTMENT_NAME
----------- ------------------------------
1700 Administration
1800 Marketing
1700 Purchasing
2400 Human Resources
1500 Shipping
1400 IT
2700 Public Relations
2500 Sales
1700 Executive
......
⇒ Select Some Rows from a Table in Oracle
⇐ Select All Columns of All Rows in Oracle
2019-12-19, 2994🔥, 0💬
Popular Posts:
How Run SQL*Plus Commands That Are Stored in a Local File in Oracle? If you have a group of commands...
What Happens If the UPDATE Subquery Returns Multiple Rows in SQL Server? If a subquery is used in a ...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
What are single-byte character string data types supported in SQL Server Transact-SQL? Single-byte c...
How to download and install SQL Server 2005 Sample Scripts in SQL Server? If you want to learn from ...