' is different from 'xxx IS NULL'. Also note that NULL is
not the same as FALSE in general.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Olaf Zanger writes:
i'd like to add up the "true" values of a comparison like
sum(ab)
sum(case when ab then 1 else 0 end)
of maybe even just
select count(*) from table where ab;
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
just use the Makefiles with a little tweaking, but I am
wondering if I am missing something here.
No tweaking should be required, if you have your SGML catalogs set up
correctly.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Victor Muntes Mutero writes:
select * from (select * from supplier); (for example)
No subselects in FROM before 7.1.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Olaf Marc Zanger writes:
as it seems postgresql 7.0 has trouble to create
ver_id_seq
Define "trouble".
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
thout having
to add the OID's to each of the rows in the text file?
You can't, using COPY. You'll have to preprocess your file, either into
INSERT statements, are prepend your own id's.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
(# constraint media_comp_fk foreign key(comp_id) references company
cmdb(# );
ERROR: parser: parse error at or near "not"
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
TABLE AS.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
; check that.
I read a post about PostgreSQL not supporting outer joins, but I don't
have enough experience with SQL to determine if this is such a query
or not. Please advise.
This is not an outer join.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Albert REINER writes:
Suggested new wording?
What about:
Works for me. Thanks.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Frederic Metoz writes:
I am looking for the binary AND and OR ... SHIFT as well.
Do they exist for postgresql ?
in 7.1
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
imentation to find out that you have to do "\set VARIABLE"
interactively or give "--set VARIABLE=" to set a variable that does
not take a value.
Suggested new wording?
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Albert REINER writes:
in the 7.0.2-docs I find the function textpos:
However, in psql it seems one has to use strpos:
textpos() was removed from the 7.1 documentation. position() is the SQL
function, I think strpos() is from Oracle.
--
Peter Eisentraut [EMAIL PROTECTED] http
.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
now works).
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Mauricio Hipp Werner writes:
I need help, which is the symbol used in postgreSql to carry out the outer
join.
in oracle the is used (+)
in sybase the is used * and
in postgreSql?
No symbol, just words.
http://www.postgresql.org/devel-corner/docs/postgres/sql-select.htm
--
Peter
integers, only single byte signed
characters.
Is there a better datatype to use?
smallint with a check constraint
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
from tbacct where acct_timestamp like '2000-11%' group
by User_Name;
select user_name from tbacct where extract(month from acct_timestamp) = 11 ...
(SQL compliant)
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
the calulations.
Depends on the calculation. I'd just try to see if it works. When in
doubt add casts.
Also I looked in the User manual but could not find the modulo function
where is it ?
5 % 4
mod(5, 4)
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
/sysctl.conf
psql:/etc/sysctl.conf:8: ERROR: parser: parse error at or near "#"
It looks to me like you are using an older psql, perhaps from a previous
installation.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
/isbn_issn that
defines a couple of data types that might help you.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Albert REINER writes:
I think that the documentation for CASE is not very clear:
Maybe you will like this better (from upcoming 7.1):
http://www.postgresql.org/devel-corner/docs/postgres/functions-conditional.htm
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
mulitple databases. ( the usual
DB.Table or DB:table or DB@table dont seem to work)
Nope.
It's not really planned either in case you wanted to ask.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Jie Liang writes:
"../../../src/Makefile.global", line 304: Need an operator
make: fatal errors encountered -- cannot continue
su-2.04#
what I need to do?
Use GNU make.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Joseph Shraibman writes:
The only way I can find is to do a search on something, and select to
search in mailing lists. Then after the search returns click on a link,
and trucate the url to http://www.postgresql.org/mhonarc/
When in doubt, use geocrawler.com.
--
Peter Eisentraut
Saltsgaver, Scott writes:
GRANT ALL on tables here to user2;
after running the command I lost permissions to the tables once I exited
psql. I had to run psql as the postgres user to correct the situation.
Is this a bug or desired behavior?
It's a bug. Fixed for 7.1.
--
Peter
Craig May writes:
createuser -adq username
returns
invalid option adq
createuser -a -d -q
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
all the queries composing my
function in that same transaction?
Yes
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
null.
Is this intentional? Is there a way around this?
Wait for 7.1.
--
Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
Craig May writes:
I have two servers running pgsql. Is there a command to transfer the
databases
between them?
pg_dump and psql. "Back up" one database and "restore" it on the other
server. Don't even think about moving files around. :)
--
Peter Eisentraut
tore correct value 127.0.0.2/8 and
127.0.0.3/8 will lose
and will have problem with PRIMARY KEY - (sysname, ip_addr).
--
Peter Eisentraut Sernanders väg 10:115
[EMAIL PROTECTED] 75262 Uppsala
http://yi.org/peter-e/Sweden
to retreive all records from database where field which is
date time is null I am working on ASP and backend as ms-ACCESS
SELECT * FROM table WHERE datetime_field is null;
--
Peter Eisentraut Sernanders väg 10:115
[EMAIL PROTECTED] 75262 Uppsala
http
201 - 232 of 232 matches
Mail list logo