Employee Payroll Management System Using Java Netbeans-Part 11- Insert Data Into Sqlite Database

preview_player
Показать описание
In this tutorial you will learn how to insert data into a database using java.

Project Scope

This is an introduction of a simple Java Employee Payroll Management System (Payroll System) using SQLITE database that was developed using Java Netbeans. Furthermore the use of GUI components to achieve this project are as follows:

JButton,JTable,IText,JComboBox, JLabel,JRadioButton, JFrame,JPanel,Image Icons, JTextField.

Functions used
Add Record
Deleted Record
Update Record
Clear Fields
Login
Logout
Date & Time
PDF

Objective of Java Payroll Project Employee Management System.

The main objective of the Java Project on Payroll Management System is to manage the details of Employees, Payments, Salary. It also manages all information about the Employee, Payroll and Salary Slips. The project is totally built at administrator end of things. Only the administrator is guaranteed the access. The purpose of the project is to build an application that reduces the manual work and it can be used as a school project.

Code & Imports

Connection conn=null;
ResultSet rs=null;
PreparedStatement pst=null;

Toolkit toolkit = getToolkit();

try {
String sql ="insert into Staff_information "
+ "(first_name,surname,Dob,Email,"
+ "Telephone,Address,Department,"
+ "Image,Salary,Gender,Address2,"
+ "Post_code, Designation,Status,job_title,Apartment,Date_hired) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";








}
catch (Exception e)

{
}

finally {

try{

}
catch(Exception e){
}


}

CREATE TABLE "Staff_information" ("id" INTEGER PRIMARY KEY NOT NULL ,"first_name" VARCHAR,"surname" VARCHAR,"Dob" INTEGER DEFAULT (null) ,"Email" VARCHAR,"Telephone" VARCHAR,"Address" VARCHAR,"Department" VARCHAR,"Image" BLOB,"Gender" CHAR,"Salary" VARCHAR,"Address2" VARCHAR,"Apartment" VARCHAR,"Post_code" VARCHAR DEFAULT (null) ,"Designation" VARCHAR,"Status" VARCHAR,"Date_hired" VARCHAR,"job_title" VARCHAR)

#java tutorial for beginners
#java tutorial
Thanks for watching.
Рекомендации по теме
Комментарии
Автор

Bundle of Thanks for all that efforts.

adilimrang
Автор

Hallo have NullPointerException, how to solve the problem? Thanks

awisnnu
Автор

Sir i have an error..
java.sql.SQLException.. No value specified for Parameter 8...
Can u tell me how can i solve???

zunairahbukhari
Автор

my Firefox browser just got updated and because of that now my Sqlite Manager is not working anymore...can you provide me with an altenative???

shivanitiwari
Автор

When i press the "add record" my data are not even no massege are plz help me....what is the problem???? 😖😖😖😖

rackboy
Автор

I have error java.sql.sqlexception: near")".syntax error can someone help?

MrComandante
Автор

near import syntax error. how to solve this problem

vishwanathh
Автор

sir i have NullPointerException, how to solve the problem?

ichsanfadilah
Автор

M having NullPointerException...

Plz Help me out

sudheer
Автор

hello...your code is not working properly

ishasharma
Автор

Not really..
You just skip the mostimportant part
Nobody comes here to watch the pretty pictures...so if yu don't know or don't want to actualy teach..stop

reila
join shbcf.ru