自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle常用日期轉(zhuǎn)換

數(shù)據(jù)庫 Oracle
Oracle數(shù)據(jù)庫功能性很好,很多用戶都首選Oracle數(shù)據(jù)庫,因此,Oracle數(shù)據(jù)庫得到了廣泛的應(yīng)用,本文中就為大家介紹Oracle數(shù)據(jù)庫經(jīng)常用到的操作,即日期轉(zhuǎn)換。

Oracle日期常用函數(shù)轉(zhuǎn)換:

  1、select extract(year from sysdate) "year", //獲取年

  extract(month from sysdate) "moth", //獲取月

  extract(day from sysdate) "day" //獲取日

  from dual

  2、 Select to_char(sysdate,'MM') from dual; //月份

  Select to_char(sysdate,'yyyy') from dual; //年份

  Select to_char(sysdate,'dd') from dual; //日

  3、 to_date('2010-12-21','yyyy-mm-dd'); //mm不區(qū)分大小寫

  4、 to_date('2010-12-21','day mm/dd/yyyy')

  5、求某天是星期幾

  select to_char(to_date('2010-12-21','yyyy-mm-dd'),'day') from dual;

  6、select trunc(sysdate,'dd') from dual; //去除時(shí)分秒

  7、select sysdate from dual; //系統(tǒng)時(shí)間

本文比較適合剛剛?cè)腴T的初學(xué)者學(xué)習(xí),把Oracle數(shù)據(jù)庫的基礎(chǔ)知識(shí)掌握好了,才利于大家更深入去研究Oracle數(shù)據(jù)庫知識(shí),希望上文中涉及到的內(nèi)容對(duì)大家能夠有所幫助。

【編輯推薦】

  1. Oracle中幾個(gè)限制的說明
  2. Oracle中非默認(rèn)方式創(chuàng)建外鍵的使用
  3. Oracle訪問Sybase數(shù)據(jù)庫的方法
  4. Oracle存儲(chǔ)過程簡(jiǎn)單實(shí)例
責(zé)任編輯:迎迎 來源: 中國IT實(shí)驗(yàn)室
相關(guān)推薦

2010-10-25 17:17:50

Oracle日期轉(zhuǎn)換函

2010-04-29 12:23:58

Oracle 獲取系統(tǒng)

2010-07-22 13:45:35

SQL Server

2010-04-01 09:46:04

Oracle日期函數(shù)

2019-11-13 08:31:43

Oracle數(shù)據(jù)庫腳本

2010-10-25 15:12:42

Oracle日期函數(shù)

2016-12-14 09:07:54

日期轉(zhuǎn)換中文

2010-11-15 13:35:28

Oracle記錄類型

2010-10-25 17:39:24

Oracle單行日期函

2011-04-12 13:27:09

Oracle日期函數(shù)

2010-11-16 15:23:28

Oracle游標(biāo)

2010-10-27 13:25:33

Oracle查詢

2010-09-16 13:22:03

Sql Server日

2023-03-30 08:00:56

MySQL日期函數(shù)

2010-04-23 13:29:09

Oracle日期

2010-04-23 14:04:23

Oracle日期操作

2010-10-27 13:04:37

oracle查詢?nèi)掌?/a>

2010-04-01 10:29:12

Oracle 處理日期

2010-04-13 13:01:21

Oracle exp

2011-06-29 11:53:54

WPS表格
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)