Skip to content

vinnix/JavaLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Running some tests with PostgreSQL and JDBC

$ psql -d postgres -c "CREATE TABLE tb_teste (col1 INTEGER) ;"

$ psql -d postgres -U pgsql -c "ALTER TABLE tb_teste ADD COLUMN col2 VARCHAR(10);"

$ psql -d postgres -c "INSERT INTO tb_teste VALUES (generate_series(1,40)) ;"

$ psql -U pgsql -d postgres -c "ALTER TABLE tb_teste ADD PRIMARY KEY(col1);"

$ wget http://jdbc.postgresql.org/download/postgresql-9.1-902.jdbc4.jar

$ mkdir bin

$ javac -cp postgresql-9.1-902.jdbc4.jar  Scrollable.java -d bin/

$ java -cp postgresql-9.1-902.jdbc4.jar:. Scrollable

About

Just running some tests with Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages