Get the App
SLTechnology News&Howtos  ›  Database  › 

Chapter 2: limitations of oracle_sql statements (where clause) and permutation data (order by clause)

Shulou Source: shulou.com Published: 2022-06-01 21:39:14 09月30日 Update

Restrict data access:

Use numbers as conditions

Select ename,sal,deptno from emp where DEPTNO=10

Use characters as conditions, the string should be quoted only, case-sensitive!

Select ename,sal,deptno from emp where ename='king'

Select ename,sal,deptno from emp where ename='KING'

Use date as a condition, format sensitive!

Select ename,hiredate from emp where hiredate='23-JAN-82'

View the system date format with the help of the system function:

Select sysdate from dual

Select * from nls_database_parameters

Use single-line comparison symbols in where conditions

>

< , = ,>

=, = and

Tags: Salary employee condition data result name income department sort restriction alias ascending order name character date format system employee management clause Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi vpn Shulou Tech Info NVidia