oracle plsql定義date_timestamp_with time zone
Example 2-3 Using DateTime Literals
DECLARE d1 DATE := DATE '1998-12-25'; t1 TIMESTAMP := TIMESTAMP '1997-10-22 13:01:01'; t2 TIMESTAMP WITH TIME ZONE := TIMESTAMP '1997-01-31 09:26:56.66 +02:00'; -- Three years and two months -- For greater precision, we would use the day-to-second interval i1 INTERVAL YEAR TO MONTH := INTERVAL '3-2' YEAR TO MONTH; -- Five days, four hours, three minutes, two and 1/100 seconds i2 INTERVAL DAY TO SECOND := INTERVAL '5 04:03:02.01' DAY TO SECOND;
##一個小范例
SQL> set serveroutput on
SQL> r
1 declare
2 d1 date:=date'2010-02-21';
3 begin
4 dbms_output.put_line(d1);
5* end;
21-2月 -10
PL/SQL procedure successfully completed.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-669330/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle time_zone!Oracle
- Oracle TimezoneOracle
- oracle time_zone(zt)Oracle
- 轉:Oracle TimeZoneOracle
- oracle之time zone時區timestamp with time zone相關的概念之一Oracle
- ORACLE 時間與時區(Time and Time Zone)Oracle
- timestamp with local time zone型別和timestamp with time zone型別
- Oracle的時區問題Time ZoneOracle
- 6、TIMESTAMP WITH TIME ZONE和TIMESTAMP WITH LOCAL TIME ZONE的實踐理解
- Oracle timezone的相關知識Oracle
- JavaScript getTimezoneOffset()JavaScript
- JDBC:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.JDBCServerZed
- linux timezone 設定LINUX 時區Linux
- Invalid time zone indicator ‘ ‘Indicator
- linux timezoneLinux
- 關於Oracle Timezone的一點總結Oracle
- 【Oracle】 Oracle dbtimezone與OS時區不一致Oracle
- oracle 10.2.0.1 emctl Timezone mismatch: The agentTZRegion value (US/Eastern)OracleAST
- Need to set ‘serverTimezone‘ propertyServer
- Setting the Database Time Zone (80)Database
- TIMESTAMP和TIMESTAMP WITH TIME ZONE之間的總結
- Getting NOW() in your preferred time zone
- Specifying the Database Time Zone File (81)Database
- Oracle Scn 定義Oracle
- oracle 定義jobOracle
- BUG: JS 修改Date的TimezoneJS
- redhat 5.5 time zone configurationRedhat
- [20241009]oracle timestamp with time zone資料型別的儲存.txtOracle資料型別
- oracle plsqlOracleSQL
- `jsonb` 報錯 `invalid input syntax for type timestamp with time zone ““JSON
- "undefined reference to strptime"之自己定義strptime函式Undefined函式
- mysql出現Unknown or incorrect time zone: 'NULL'MySqlNull
- oracle 線上重定義Oracle
- Oracle線上重定義Oracle
- PLSQL常用設定SQL
- ORA-39322: Cannot use transportable tablespace with timestamp with timezone...
- oracle plsql例子OracleSQL
- Server returns invalid timezone. Need to set ‘serverTimezone‘ property. Idea連線mysql報錯問題ServerIdeaMySql