Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
Strange syntax with select - Mailing list pgsql-general
From
Edson F. Lidorio
Subject
Strange syntax with select
Date
December 25, 2015
13:23:24
Msg-id
567D4335.1050506@openmailbox.org
Whole thread
Raw
Responses
Re: Strange syntax with select
Re: Strange syntax with select
List
pgsql-general
Tree view
Hello,
I excuse my
ignorance
with
SQL
and my
English.
I wonder if
these procedures
are correct
or is it a
bug?
I'm
trying to put
the result of
a select
within the
v_saldo_ini
variable
, except I
realized that the
postgresql
created a table
with
v_saldo_ini
variable.
See
the
steps
below:
CREATE TABLE contas
(
vlr_saldo_inicial numeric(14,2)) ;
select sum(vlr_saldo_inicial) as saldo_ini
into v_saldo_ini
from contas;
--postgresql
created
v_saldo_ini
table
select * from v_saldo_ini;
saldo_ini
-----------
20000.00
(
1 record
)
--if
I
executat
=
ro
select
below
,
returns
the table
v_saldo_ini
already exists
select sum(vlr_saldo_inicial) as saldo_ini
into v_saldo_ini
from contas;
ERROR
:
relation
"
v_saldo_ini
" already exists
I'm
using version
below
PostgreSQL.
PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
--
Edson
pgsql-general
by date:
Previous
From:
Amit Bondwal
Date:
25 December 2015, 08:09:12
Subject:
Re: BDR error while adding 3rd node to cluster
Next
From:
Andreas Kretschmer
Date:
25 December 2015, 14:45:42
Subject:
Re: Strange syntax with select
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies