[GENERAL] How can I get the last serial I inserted?

2000-07-22 Thread database

Dear all,

I would like to insert a row into a table with serial type id as other table's 
reference key. After that insert, I would use the inserted serial to insert 
into another table. 

The problem is how can I find that serial value and ensuring other is inserting 
at the same time? 


Best regards,
Boris 



[GENERAL] Database Diagram Drawing Tools ?

2000-07-29 Thread database

Dear all, 

I need drawing tools to show the table relationship. I have used pgaccess but 
it seems that the effect is not very good. Are there any recommendations? 


Best regards,
Boris



Re: [GENERAL] Database Diagram Drawing Tools ?

2000-07-29 Thread database

Hi all,

I have downloaded the dia 0.80 for Redhat. But it has only diagrams for 
flowchart, network, sybase uml and circuit. I would like to use it to show the 
table fields and the relationship. How can I do it? 

Many thanks!!!

Best regards,
Boris

Quoting Karl DeBisschop <[EMAIL PROTECTED]>:

> "Robert B. Easter" wrote:
> > 
> > On Sat, 29 Jul 2000, [EMAIL PROTECTED] wrote:
> > > Dear all,
> > >
> > > I need drawing tools to show the table relationship. I have used
> pgaccess but
> > > it seems that the effect is not very good. Are there any
> recommendations?
> > 
> > Dia
> > 
> > http://www.lysator.liu.se/~alla/dia/
> > 
> > --
> > - Robert
> 
> We paid $$$ for visio pro. It can automatically detect table
> relationships and show joins. But we were never able to find a way to
> show which attributes the joins were based on. In the end we found dia
> to handle the task easily. And for no $$$.
> 
> I second the recommendation.
> 
> -- 
> Karl DeBisschop   
[EMAIL PROTECTED]
> Family Education Network/Information Please   http://www.infoplease.com
> Netsaint Plugin Developer [EMAIL PROTECTED]
> 



[GENERAL] select question

2000-07-29 Thread database

Dear all,

Is there a way I can select the top 50 rows from table, 51 - 100 rows from 
table etc (with order clause)? It is because I am writing a message board 
and I would like to create the prev/next button on different page.

Many thanks.

Best regards,
Boris 



[GENERAL] hierarchy select question?

2000-07-31 Thread database

Dear all, 

I would like to define threads in message system for replies to message but if 
I define too many level, I am afraid I have problem in the select...

Say, I have define 3 levels: 

1
   / \
  2   3
 /\\
4   5   6

It means message 2 is a reply to 1.
 4 is a further follow-up of 2...etc

In table format, I would present it with

Table A
ParentId  ChildId
1 2 
1 3
2 4
2 5
3 6

I think I can issue the command to join table A 3 times to give the following 
result

  1st2nd 3rd  
Row11  2   4
Row21  2   5
Row31  3   6

But can I show 
a. which level each node belongs
b. no. of child nodes it has 
altogether in one "select" sql  

and if the level exceeds 3, how can I do it? 


Many thanks.


Best regards,
Boris



[GENERAL] SQL Manager 2007 for PostgreSQL released

2007-05-28 Thread EMS Database Management Solutions (SQLManager.net)
We, here at EMS Database Management Solutions, are pleased to announce
SQL Manager 2007 for PostgreSQL - the new major version of the
powerful PostgreSQL administration and development tool!

You can download SQL Manager 2007 for PostgreSQL at:
http://www.sqlmanager.net/products/postgresql/manager/download

You can purchase SQL Manager 2007 for PostgreSQL at:
http://www.sqlmanager.net/products/postgresql/manager/buy

What's new in SQL Manager 2007 for PostgreSQL?
1. Support of UTF8 data in SQL Editor, Query Builder, Grid View, Data
Export/Import Wizard.
2. Now you can continue working with SQL Manager while a query is
being executed in SQL Editor or Query Builder or while table or view
data are being loaded in the editor. A query taking too long to
execute can be aborted when using PostgreSQL 8.0 and higher.
3. New Database Statistics form added; it allows viewing various
statistic information on database objects, helps to find weak points
in database performance, indicates if it's necessary to create new
indices, etc. The corresponding options must be enabled in server
configuration file (postgresql.conf.) for collecting statistics.
4. All Wizards, including Data Export/Import, DB Extract, Copy DB
wizards can now be run in the background mode, so that you could
continue working with the program.
5. New improved SQL Editor of the Visual Studio 2005 kind with Code
Folding function and UNICODE support.
6. Improved Data Import Wizard now allows to import data up to 10
times faster. New import formats have been added: HTML, XML Document,
Open Document Format (OpenOffice), Open XML Format (MS Word 2007, MS
Excel 2007).
7. Support of new PostgreSQL 8.2 features is implemented (FILLFACTOR
parameter for tables and indices, CONNECT permission for databases,
USAGE permission for sequences, support of CREATE INDEX CONCURRENTLY,
ALTER TABLE [ NO ] INHERIT support, creating domains based on other
domains, support of IF EXISTS clause in DROP operators of the Extract
Database Wizard, reassigning ownership of all objects owned by a
role).
8. Object editors now contain the Permissions tab which allows to
grant permissions on the object for users and groups.
9. Common SQL commands can now be generated from DB Explorer (Script
to SQL Editor, Script to Clipboard). Now you can easily generate such
SQL commands as CREATE, ALTER, DROP, SELECT etc for each database
object.
10. Now you can save your queries in the Favorite Queries folders in
DB Explorer; these queries сan be stored either locally in the
registry (nobody but you will have access to them) or in a special
database table (then all or some of your db users will have access to
it).
11. Download File wizard has been added, which allows to download and
upload files from/to PostgreSQL server machine using standard
PostgreSQL functions and FTP/SFTP protocols.
12. Improved Visual database designer; new object type - comments - is
added. One can now choose whether only object names or fields should
be displayed. Now it is possible to select schemas whose tables should
be added to the diagram when performing Reverse Engineering.
13. Improved Data Export Wizard now works faster. New export formats
have been added: XML Document, Open Document Format (OpenOffice), Open
XML Format (MS Word 2007, MS Excel 2007).
14. Database Properties window has been added, which displays database
options and allows to change some of them.
15. Improved Table Editor. Now it is possible to view and change table
properties on a new tab.
16. Tasks menu is added in DB Explorer context menu. It contains
common operations which can be performed on the object selected. Also
hosts are now named in accordance with the selected connection type
(SSH or HTTP tunneling).
17. Improved report building system.
18. Function Debugger. The variable that changed its value at the last
step is displayed bold at the Debug Information window. The SQLSTATE
and SQLERRM variables are also displayed now.
19. Lots of other improvements and bug-fixes.

Hope you will enjoy working with our software.


---(end of broadcast)---
TIP 4: Have you searched our list archives?

   http://archives.postgresql.org/