[RSS]

CREATING DATABASE USING NETBEANS


Actually,Netbeans 6.0 provide database service,Derby. Derby is the open source database being developed as part of the Apache DB Project.


1.To create a database from Netbeans is very easy. Select Tools > java DB Database > Create Database...as shown below:

picture1

2.You will see a window with caption "Create java DB database " .Fill the asked information in that as shown below for example.
picture2

Click OK button.
3.Right click on Databases>jdbc:derby://localhost:1527/mydb(scott on SCOTT),and click on connect to connect to database.

picture3

4.To create any table in your created database,right click on Tables and select "create table" as shown below:

picture4

5.you will be encountered with a "create table" window. Fill it as shown below for example:

picture5

6.To insert data into created table Right click on Tables>"name of table created"(here "employee") and select view data as shown below:
picture6
7.SQL command editor will appear on the right side. write insert command as shown below for example:
picture7
8.To execute your SQL command press Ctrl+Shift+E.You can see the execution details on output window as shown below:
picture8

9.To view the data in the table Right click on Tables>"name of table created"(here "employee") and select "view data" as shown below:

picture9
10.Select command will appear for that table. Also you can modify that command according to your needs.To execute your SQL command press Ctrl+Shift+E.You can watch the table under INS window as shown in picture below.
picture10

FrontPage http://www.google.com/

Attachments

1.JPG Info on 1.JPG 51854 bytes
1.bmp Info on 1.bmp 51854 bytes
10.JPG Info on 10.JPG 77538 bytes
11.JPG Info on 11.JPG 61194 bytes
12.JPG Info on 12.JPG 68564 bytes
2.bmp Info on 2.bmp 818110 bytes
4.bmp Info on 4.bmp 813714 bytes
5.bmp Info on 5.bmp 532662 bytes
6.JPG Info on 6.JPG 65056 bytes
7.JPG Info on 7.JPG 63980 bytes
9.JPG Info on 9.JPG 44153 bytes