Tutorial Java : Insert Statement, Delete Statement, Update Statement Java

Belajar Tutorial Java Pemula : Insert Statement, Delete Statement, Update Statement pada Java, Aplikasi CRUD Java NetBeans IDE, tutorial Java di Sector Code

Belajar Java - Aplikasi CRUD (Create,Read,Update,Delete) sangat dibutuhkan dalam bahasa pemrograman apapun termasuk bahasa pemrograman Java, Tutorial Java kali ini akan kami bahas tentang penggunaan Insert Statement, Delete Statement, Update Statement pada Java menggunakan NetBeans IDE yang mana statemen dari CRUD akan kami bagi - bagi, untuk aplikasi CRUD secara lengkapnya akan diposting pada artikel berikutnya, Bagi kamu yang ingin menyimak aplikasi CRUD dengan VB.NET silahkan baca Tutorial VB.NET : CRUD (Create, Update, Delete) Vb.Net Database MySQL, Sekarang mari kita simak dulu Statement - Statement CRUD dalam Java ini ya.

Insert Statement, Delete Statement, Update Statement Java

Insert Statement Pada Java

    public int Insert(Classbiodata s){         
        int result = 0;         
        try {             
            result = st.executeUpdate("INSERT INTO biodata_siswa values('" + s.idSiswa()+ "','" + s.namaSiswa() + "','" + s.nisSiswa() + "','" + s.jenisKelamin() + "','" + s.kelasSiswa() + "','" + s.alamatSiswa() + "')");         
        } catch (Exception e){             
            e.printStackTrace();
        }         
        return result;     
    }                    

Delete Statement Pada Java

        public int Delete(Classbiodata s){         
            int result = 0;
            try {
                result = st.executeUpdate("delete from biodata_siswa where id_siswa='"+ s.idSiswa() +"'");
            } catch (Exception e){
                e.printStackTrace();
            }
            return result;
        }                

Update Statement Pada Java

    public int Update(Classbiodata s){         
        int result = 0;         
        try {             
            result = st.executeUpdate("update biodata_siswa set nama_siswa='"
                    + s.namaSiswa() + "',nis='" + s.nisSiswa()
                    + "',jenis_kelamin='" +s.jenisKelamin()+ "',kelas='" + s.kelasSiswa()+ "',alamat='" + s.alamatSiswa()+ "' where id_siswa='" + s.idSiswa() + "'");
        } catch (Exception e){
            e.printStackTrace();
        }
        return result;
    }              
Eksekusi pada aplikasi CRUD diatas menggunakan Database MySQL, unuk tutorial lengkapnya akan kamu update setelah postingan ini, terima kasih ;)

Feel free to code it up and send us a pull request.

Hi everyone, let's me know how much this lesson can help your work. Please Subscribe and Follow Our Social Media 'kodeajaib[dot]com' to get Latest tutorials and will be send to your email everyday for free!, Just hit a comment if you have confused. Nice to meet you and Happy coding :) all ^^



Follow by E-Mail


Name

ADO.NET,3,Ajax,6,Android,9,AngularJS,4,ASP.NET,4,Blogger Tutorials,7,Bootstrap,7,C++,1,Codeigniter,2,Cplusplus,6,Crystal Report,6,CSharp,25,Ebook Java,2,FlyExam,1,FSharp,3,Game Development,2,Java,35,JDBC,2,Laravel,89,Lumen,2,MariaDB,2,Ms Access,3,MySQL,31,ODBC,6,OleDB,1,PHP,14,PHP Framework,6,PHP MYSQLI,9,PHP OOP,5,Python,8,Python 3,4,SQL Server,4,SQLite,4,Uncategorized,5,Vb 6,2,Vb.Net,89,Video,48,Vue Js,4,WPF,2,Yii,3,
ltr
item
KODE AJAIB: Tutorial Java : Insert Statement, Delete Statement, Update Statement Java
Tutorial Java : Insert Statement, Delete Statement, Update Statement Java
Belajar Tutorial Java Pemula : Insert Statement, Delete Statement, Update Statement pada Java, Aplikasi CRUD Java NetBeans IDE, tutorial Java di Sector Code
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNOzwRwb6QJZAvexDVlerQHAWdSp0ehPHTZQH0See4Z0efRSUVVCO1_nEUWmQInXEILftt_024XGIX_n1HTursOx1ogMo9dLzVDGMVnBV_dksh4L5dTAbqAYkW3pHxxVpUTXlMw4q-yH4/s320/CRUD-JAVA-2.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNOzwRwb6QJZAvexDVlerQHAWdSp0ehPHTZQH0See4Z0efRSUVVCO1_nEUWmQInXEILftt_024XGIX_n1HTursOx1ogMo9dLzVDGMVnBV_dksh4L5dTAbqAYkW3pHxxVpUTXlMw4q-yH4/s72-c/CRUD-JAVA-2.jpg
KODE AJAIB
https://scqq.blogspot.com/2015/10/tutorial-java-insert-statement-delete-update-java.html
https://scqq.blogspot.com/
https://scqq.blogspot.com/
https://scqq.blogspot.com/2015/10/tutorial-java-insert-statement-delete-update-java.html
true
3214704946184383982
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy