Re: postgresql



On Wed, 28 Mar 2007 01:43:27 -0700, Tavanda Kosan wrote:

hello

i want to run some sql and postgresql commands.. i installed mysql and
postgresql from yast.. but i dont know where i can create tables or
users.. i just want to make some practise for my sql lecture. i want
to run some basic statement like `select fname,lname from users where
salary=500` and so on...


Assuming you have installed postgresql-docs to can point your browser to:
file:///usr/share/doc/packages/postgresql/html/index.html

For mysql, there is an excellent 1960 page manual in
/usr/share/doc/packages/mysql/manual.pdf

But the fact remains, these are complex packages which require some
administrator skills to even get started. If you just want to play with
select, insert and update commands then sqlite3 is ideal.

# sqlite3 pets.sq3
SQLite version 3.3.8
Enter ".help" for instructions
sqlite> create table animal (name, legs);
sqlite> insert into animal values ('dog',4);
sqlite> select * from animal;
dog|4
sqlite> .dump
BEGIN TRANSACTION;
CREATE TABLE animal (name,legs);
INSERT INTO "animal" VALUES('dog', 4);
COMMIT;

sqlite3 stores everything in a single file, that you can copy or mail.
There is no server, no admin required. There are also modules available
for perl and tcl/tk to do scripting with sqlite databases.

Good luck,

--
Frank Ranner
.



Relevant Pages

  • Re: Datenbank fuer Bauteile (Linux/Unix)
    ... Dann nimmt man SQLite. ... Aber zumindest PostgreSQL ist in der Lage die Datenbank in einem beliebigen ...
    (de.sci.electronics)
  • Re: Event-based databases
    ... MySQL, SQLite, PostgreSQL for starters. ...
    (soc.genealogy.computing)
  • Re: CLOS persistence
    ... you could use their dbms for free if you don't redistribute it, ... bsd license .It doesn't matter would you charge or not as long as you ... PostgreSQL because of the licensing. ... SQLite is very limited solution but depends on your needs. ...
    (comp.lang.lisp)
  • Re: SUSPECT: Re: Python, xml, databases, ...
    ... > install separate software. ... If I'm not mistaking, performance wise, SQLite ... In one simple-minded benchmark I've once done, PostgreSQL was ... As akways with databases, it'll depend on the benchmark and the ...
    (comp.lang.python)