?? bulletin_intro.java
字號:
package bull;
import java.sql.*;
import java.util.*;
import java.io.*;
public class bulletin_intro
{
public String bulletin_title;
public Collection col=new ArrayList();
public Connection con;
public Collection b_intro() throws Exception{
try{
Statement statement=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from bulletin_info where bulletin_title='"+bulletin_title+"'";
ResultSet r=statement.executeQuery(sql);
while(r.next())
{
bulletin bul=new bulletin();
bul.setBulletin_title(r.getString(1));
bul.setBulletin_context(r.getString(2));
bul.setBulletin_time(r.getString(3));
col.add(bul);
}
}catch(SQLException ee)
{}
return col;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -