Re: [GENERAL] Suse Linux 10.0

2006-03-26 Thread Tony Smith
Hi everyone: We have the max function in postgresql so we can run something like: select max(my_field) from my_table? But I can not find a mean function. Can we do: select mean(my_data_field) from my_table? Thanks, qq __ Do You Yahoo!? Tired o

[GENERAL] select where in and order

2006-03-09 Thread Tony Smith
I have two tables action and group: action id, name group: action_id rank I what to select from action table by order by the rank in the group table. If I use select * from action where id in (select action_id from group order by rank) The ac

[GENERAL] postgresql SSL off

2005-07-12 Thread Tony Smith
When I was trying to connect my databse with jdbc, I got the following error message: org.postgresql.util.PSQLException: Connection rejected: FATAL: no pg_hba.conf entry for host "mydomain", user "", database "myDB", SSL off. When I run in dos console "psql myDB..." it works fine. My jdbc c

[GENERAL] dump the database data

2005-07-08 Thread Tony Smith
I have tables create by: create table address( id serial PRIMARY KEY, ...); create table user( id serial PRIMARY KEY, name text not NULL, addressId integer REFERENCES address(id) NOT NULL, UNIQUE(name) ); ... I have used the database for sometime and now I would like to