简体   繁体   中英

why do i need jdbc with sqlite java?

if sqlite is self-contained, serverless, zero-configuration, transactional SQL database engine , why i can't just

Sqlitedatabase x = new SqliteDatebase(...);

and then use

x.CreateNewTable("table1","id int","name string");

The de-facto way to talk to databases in Java is through JDBC. The driver used may then do this under the hood, but you are not supposed to.

Also sqlite is not written in Java. If you want to use a database written in Java which can be embedded in your application, have a look at Apache Derby.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM