postgresql 拾遗
来源:互联网 发布:java程序员简历下载 编辑:程序博客网 时间:2024/05/21 08:44
1. 从timestamp提取date和time
to extract date from coldate,
SELECT date(coldate) FROM mytable;
to extract time, doing time(coldate) will give an error instead,
SELECT "time"(coldate) FROM mytable
another way
SELECT coldate::time FROM mytable
2.string to timestamp
to_timestamp(timestring,format)
to_timestamp('15:33:33','HH24:MI:SS)
select to_timestamp('2011-12-30 00:30:00','YYYY-MM-DD HH24:MI:SS')::timestamp without time zone;
3. 字符串连接
‘string1’ || ‘string2’
- postgresql 拾遗
- 拾遗
- 拾遗
- postgreSQL
- PostgreSQL
- PostgreSQL
- postgresql
- postgresql
- PostgreSQL
- PostgreSQL
- PostgreSQL
- PostgreSQL
- PostgreSQL
- PostgreSQL
- PostGresql
- PostgreSQL
- PostgreSQL
- postGreSql
- sysctl命令及改变net.ipv4.ip_forward = 1方法
- 转化函数
- 学习JavaScript的最佳方法分享
- arm linux嵌入式经典回答
- Add user with sudo
- postgresql 拾遗
- 做一名合格的前端开发工程师---各浏览器对页面外部资源加载的策略
- SOCKET错误码详解
- java截图
- Qt开发 检测电脑是否有网
- openfire
- mysql 中外键处理的三种方式
- 移动开发必备!15款jQuery Mobile插件
- web.xml中load-on-startup的作用