zoukankan      html  css  js  c++  java
  • Oracle书写格式

    1. 字符串和日期要包含在单引号中
    2. 字符大小写敏感,日期格式敏感
    3. 默认日期格式:dd - MON - RR
    select * 
      from emp
      where last_name = 'King'   
      where last_name = 'KING'   --两次查询的结果不同
    
    selelct *
      from emp
      where date = '20-12-18'
      where date = '2018-12-20'   --语句报错  格式错误
    • 修改日期格式
    alter session set NLS_DATE_FORMAT = 'YYYY-MM-DD';
    View Code
    • BETWEEN ...AND
    1. 含有边界
    2. 小值在前,大值在后。
    between 1000 and 2000;       --可以查询到结果
    between 2000 and 1000;       --无法查询到结果
    View Code
  • 相关阅读:
    Codeforces 977F
    Codeforces 219C
    Codeforces 1132
    Codeforces 660C
    Codeforces 603A
    Codeforces 777C
    Codeforces 677
    JNUOJ 1032
    Codeforces 677D
    Codeforces 835C
  • 原文地址:https://www.cnblogs.com/keenoooo/p/10060944.html
Copyright © 2011-2022 走看看