select create_time from xxx; select to_char(create_time,'yyyy-MM-dd HH24:mm:ss') as create_time from xxx 居然达不到想要的效果 select date_trunc('second',create_time) as create_time from xxx 解决...
postgres创建索引参考 http://www.cnblogs.com/stephen-liu74/archive/2012/05/09/2298182.html CREATE TABLE test1 ( id integer, content varchar ); CREATE INDEX test1_id_index ON test1 (id); 创建存储过程 CREATE OR REPLACE FUNCTION update_sqs(lng "v
多表通用的SQL存储过程分页 案例一: USE [Community] GO /****** Object: StoredProcedure [dbo].[Common_PageList] Script Date: 2016/3/8 13:44:58 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[Common_PageList] ( ),---表名 @strFld nvarchar