摘要:
drop table Message //删除表Messagecreate table Message (Message_id int PRIMARY KEY IDENTITY,Message_content varchar(100)) //创建表message 字段message_id int类型,并且是主键,并且是自动递增 字段 Message_content 字符串长度100 阅读全文
摘要:
两种方法:一:1。下载并引用 jtds-1.2.jar 把包复制到 libs下面//运行timer 发送数据 TimerTask task = new TimerTask(){ //在新线程中运行下面,因为android4.0以上,不支持在主线程中访问数据库了 public void run() { Connection conn;try {Class.forName("net.sourceforge.jtds.jdbc.Driver"); //加载驱动} catch (ClassNotFoundException e) {// TODO Auto-generated ca 阅读全文
摘要:
http://blog.csdn.net/conowen/article/details/7435231/********************************************************************************************* author:conowen@大钟 * E-mail:conowen@hotmail.com * http://blog.csdn.net/conowen ... 阅读全文