الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

codes 4 JDBC

مغلق
بدأه ahabdeen في 14 سبتمبر 2003 · 2 رد · 833 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ارجو رؤية هذه الاكواد ومعرفة اذا كانت صحيحة او لأ؟

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection driver=DriverManager.getConnection(url,"","");
Statement statement=driver.createStatement();
String Nam="insert into table1 values('hamada','mohamed','ahabdeen')";
ResultSet result=statement.executeQuery(statementString);
//for printing the contents of the table
while(result.next())
{
	System.out.println("title is "+result.getString(1)+"\n"+"Name is "+result.getString(2)+"\n"+"Auth is "+result.getString(3)+"\n");
}
//For add new Row in table>>>> //statement.executeUpdate(Nam);
String search="SELECT * FROM table1 where Title like '%h%' ";
//for seraching in the table and print the serching results
ResultSet res=statement.executeQuery(search);
/*System.out.println("Searching.....");
System.out.println("");
System.out.println("");
while(res.next())
{
	System.out.println("title is "+res.getString(1)+"\n"+"Name is "+res.getString(2)+"\n"+"Auth is "+res.getString(3)+"\n");
}*/

ahabdeen.jpg

<marquee>

مش موجود بصفة دايمة للامتحانات

</marquee>

#2

و الله مبداياً و بعد قراءة سريعة اظنه صحيحاً

Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why

#3

انا عارف انه صح

انا حطيته للتوضيح للجميع

ahabdeen.jpg

<marquee>

مش موجود بصفة دايمة للامتحانات

</marquee>

هذا الموضوع مغلق.

مواضيع مشابهة