postgresql-9.1

    0热度

    1回答

    我想从数据库中最后10条分钟记录,我已经使用这个查询 select * from x_table where x_time >=(now()-interval '10 minutes') 我访问该远程服务器是从本地机器不同的时区和我的时间 如此落后11个小时,当我试图给定的查询不给我正确的输出 我可以在查询修改,使我会得到正确的结果。

    0热度

    1回答

    我posgresql 9.6运行以下命令: ./bin/createdb testSpatial ./bin/psql -d testSpatial -c "CREATE EXTENSION postgis;" create table test(name character varying(250), lat_long character varying(90250), the_geo ge

    0热度

    1回答

    我尝试从XML 此插入到PostgreSQL表数据是示例XML: <?xml version="1.0" encoding="UTF-8"?> <ActualStatuses> <ActualStatus ACTSTATID="0" NAME="Not actual" /> <ActualStatus ACTSTATID="1" NAME="Актуальный" /> <

    -3热度

    1回答

    跟进的问题,这是我使用的命令行,但它无法识别command line我的密码 The Image 我有一个包含表定义一个PostgreSQL脚本和示例数据,但每当我尝试运行该脚本,我得到的错误如图所示。 请问有没有人有什么想法? 我是新来的Pos​​tgreSQL

    2热度

    1回答

    ERROR: column "receipt_time" is of type time without time zone but expression is of type bytea Hint: You will need to rewrite or cast the expression. Position: 490 private LocalTime receiptTime; @Col

    0热度

    1回答

    在linux环境中,我试图使用perl脚本(createRole.pl)在postgresql数据库中创建一个新角色。有一个现有角色(Role1),由于initdb命令而存在。 现在我想创建一个新角色,而不使用数据库迁移并使用psql命令,因为我想要设置角色名称和密码。 从bash外壳(终端),有可能使用PSQL命令这样来创建新的角色(通​​过正确大写)(此方法将提示输入基于role1密码): [

    1热度

    1回答

    想象这些表结构 组织表 ===================== | id | name | -----+----------------+ | 1 | Organization 1 | ===================== 代替表 ================================= | id | name | organization_id | ---

    2热度

    2回答

    我想根据日期间隔将单个任务“分配”或“拆分”几小时到iso周。但我不知道如何在Postgresql中做到这一点。 CREATE TABLE task (id int4, start date, stop date, hr int4); INSERT INTO task (id, start, stop, hr) VALUES (1, '2017-01-01','

    0热度

    1回答

    在我的应用程序启动过程中,hibernate通过添加新约束来改变我的表。这里是示例代码,以获得我的问题的完整画面。 PostgreSQL模式 create table public."A" { a_id serial primary key } create table public."B" { b_id serial primary key } create ta

    1热度

    1回答

    在给定的表格中;我正在查询以显示某些列如下 select an.animals_key, an.anim_name, an.sex, an.date_of_birth, tt.trait_key, --case when tt.trait_key = 152 then 'Left Eye Pigment' --wh