java.sql Code Samples
- How do I get column names of a table using ResultSetMetaData?
- How do I disable auto commit mode in JDBC?
- How do I know the current position of cursor?
- How do I get column's precision and scale value?
- How do I get JDBC driver information?
- How do I know if a table column can have a null value or not?
- How do I check if cursor is in the first row?
- How do I move to absolute or relative row?
- How do I know if a table column value is auto-increment?
- How do I store CLOBs data into database?
- How do I know the designated column's table name?
- How do I get numeric functions supported by database?
- How do I get the max concurrent connection to a database?
- How do I get database maximum table name length?
How do I create a table in database?
In this example you can see how to create a table in database. We create a table called BOOKS with two fields ID and TITLE.