摘要:终于找了一个比较适合自己的博客,bye博客园。
阅读全文
摘要:本文转载于:file:///C:/Users/Administrator/Desktop/[%E8%BD%AC%E8%BD%BD]%E9%80%9A%E8%BF%87%E7%AB%AF%E5%8F%A3%201433%20%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%B8%BB%E6%9C%BA%20localhost%20%E7%9A%84%20TCP%20IP%20%E8%BF%9E%E6%8E%A5%E5%A4%B1%E8%B4%A5%E3%80%82%E9%94%99%E8%AF%AF%20%E2%80%9CConnection%20refused%20%20conne
阅读全文
摘要:插入数据import java.sql.*;/** * @version 2012-02-22 * @author */public class InsertDemo { public static void main(String[] args) throws SQLException { Connection conn = null; Statement stmt = null; String JDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver";//SQL鏁版嵁搴撳紩鎿� ...
阅读全文
摘要:import java.sql.*;public class Test { public static void main(String [] args) throws SQLException { String driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver"; String url="jdbc:sqlserver://localhost:1433;databaseName=test"; String userName="sa"; //"MVF7JLVWLQ
阅读全文
摘要:原文地址:http://wenku.baidu.com/link?url=39cZltge1d1HbmnF0wCO9a1M7Z4rl5urIECtGmy5D6t058KN98k10cw1bHHp6emKOel3ngghR2MBzmVee5AchUoTfyYgNGIoAPRPlYLPrwCimport javax.swing.*;import javax.swing.table.JTableHeader;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.sql.*;public c
阅读全文