这个问题很明显。我正在寻找相当于SQLite datetime function的PostgreSQL。PostgreSQL中SQLite datetime函数的等效函数是什么?
1
A
回答
2
好的,谢谢你的回答,他们帮助我指出了正确的方向。我实际上正在寻找的是to_timestamp。
6
postgres=# select to_char(now(),'YYYY-mm-dd HH:MM:ss');
to_char
---------------------
2008-09-24 02:09:20
(1 row)
postgres=# select to_char(now(),'YYYY-mm-dd HH24:MM:ss');
to_char
---------------------
2008-09-24 14:09:20
(1 row)
4
我认为这是您需要的资料搜索:
时间戳[(P)] [无时区] 或 时间戳[(P)与时区
否则看看@ http://www.postgresql.org/docs/8.1/interactive/datatype-datetime.html
相关问题
- 1. AJAX:什么是beforeSend函数在XMLHttpRequest中的等效函数
- 2. PostgreSQL中FOUND_ROWS()函数的等效
- 3. 什么是Haskell中的“::”等价函数?
- 4. WinRT(windows.networking.socket)中select()函数(在winsock2.h下)的等效函数是什么?
- 5. 什么是postgres中的NANVL(oracle函数)的等效
- 6. 什么是WP电子商务中的query_posts()的等效函数
- 7. 什么是Swift 3中KeyValuePair的等效函数
- 8. 什么是res.json()在Python中的等效函数
- 9. Facebook Graph API中status.get的等效函数是什么
- 10. PHP中Set X = Nothing的等效函数是什么?
- 11. 什么是PHP PDO中的等效函数mysqli :: afftected_rows和mysqli_result :: num_rows?
- 12. GAMMA.INV(概率,alpha,beta)Excel函数的等效R函数是什么?
- 13. ADO中SQL Server 2008 datetime的等效数据类型是什么?
- 14. PHP数据库查询中的Declare函数等效什么?
- 15. 什么是Perl的等效Python的类型()函数
- 16. 什么是jQuery的等效原型函数.activate()
- 17. SQLite DATETIME函数'中断''-1个月'?
- 18. 以下本地API函数的等效方法是什么?
- 19. 什么是C scanf()函数等效的cmd脚本?
- 20. 什么是MySQL函数wchih等于DB2/PostGIS函数“ST_Intersection”?
- 21. 什么是“有效”std ::函数?
- 22. “setw”函数的C等效
- 23. file_get_contents()的等效函数?
- 24. DateTime函数有什么区别?
- 25. sqlserver中的mysql_insert_id()函数等效于什么?
- 26. 在React Native中使用ES6的getDefaultProps函数等效于什么?
- 27. URL的等效is_file()函数?
- 28. setYLabelsColor()等函数中scale参数的用途是什么?
- 29. 函数的__proto__是什么?
- 30. MFC等效函数SetModifiedFlag