ij and derby database


/ Published in: Java
Save to your folder(s)

common commands for connecting and using derby through ij.


Copy this code and paste it in your HTML
  1. connect 'jdbc:derby:your_database_name;create=true;'; (connects to and optionally creates the specified database name)
  2.  
  3. show tables; (shows all tables)
  4.  
  5. describe table_name; (shows column definitions for a specified table)
  6.  
  7. run 'path_to_script_file'; (runs a script file)
  8.  
  9. exit; (exits ij)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.