gfsqlite depends on gfplus -- the SQL-Shell!

Commands:

<any sql statement>;  	Type SQL statement directly in the upper
			window (end with semicolon ; )

DESC <table>;       	Display all columns in a table or view

commit;			Commit all database modifications

rollback;		Rollback the transaction to the last 
			stored savepoint

Shortcuts:

<F1>   	       	        Show this Help-File

<F4>   	       	        Execute SQL commands on database
                        (alternatively: <Alt> + X)

<F5>                   	Previous command (alternatively: <Alt> + P)

<F6>                   	Next command (alternatively: <Alt> + N)

<F8>                    Last SELECT-Query as PrettyPrint-Table
                        (alternatively: <Alt> + T)

<Ctrl>                  Next query in Step by Step execution
                        mode  

<Esc>                   Abort the Step by Step execution

<Alt> + C               Clear upper window


Short-Course SQL:

Create a table ('pysql> ' is the prompt):
pysql> CREATE TABLE mytest (id integer, inhalt varchar(20));

Insert data:
pysql> INSERT INTO mytest (id, inhalt) VALUES (1,'hallo');

Display all columns in a table:
pysql> DESC mytest;

Delete table:
pysql> DROP TABLE mytest;

Delete data:
pysql> DELETE FROM mytest
       WHERE inhalt = 'hallo';

Update data:
pysql> UPDATE mytest
       SET inhalt = 'pysql'
       WHERE id = 1;

Show data:
pysql> SELECT * FROM mytest;

Show a column:
pysql> SELECT inhalt FROM mytest;

Sorting data:
pysql> SELECT * FROM mytest
       ORDER BY id;

Create index on the attribute id:
pysql> CREATE UNIQUE INDEX indexid
       ON mytest (id);

Delete index:
pysql> DROP INDEX indexid;


Create view:
pysql> CREATE VIEW mini
       AS SELECT inhalt
       FROM mytest;

Delete view:
pysql> DROP VIEW mini;


!Mind to the semicolon ';' at the end of the command!

Feedback: walter.spiegel@web.de
URL: http://gfsqlite.wspiegel.de/
