01 2015 档案
简单工厂实现
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 简单工厂{ class Program { ... 阅读全文
posted @ 2015-01-30 00:22 ~向阳花~ 阅读(155) 评论(0) 推荐(0)
参数化防SQL注入
摘要:private void AddStudent(){string strName =txtName.Text.Trim();string strPwd = txtPwd.Text.Trim();string strSql ="insert into Student (name,pwd)values(... 阅读全文
posted @ 2015-01-26 23:40 ~向阳花~ 阅读(539) 评论(0) 推荐(0)
Sqlite数据库中的事务
摘要:public void testTrasaction() throws Exception{PersonSQLiteOpenHelper helper = new PersonSQLiteOpenHelper(getContext());SQLiteDatabase db = helper.getW... 阅读全文
posted @ 2015-01-18 19:18 ~向阳花~ 阅读(428) 评论(0) 推荐(0)
实现对sqlite数据库增删改查
摘要:package com.example.db.dao;import java.util.ArrayList;import java.util.List;import android.content.ContentValues;import android.content.Context;import... 阅读全文
posted @ 2015-01-18 18:35 ~向阳花~ 阅读(632) 评论(0) 推荐(0)
Android开发SQLite数据库的创建
摘要:package com.example.db;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteDatabase.Curs... 阅读全文
posted @ 2015-01-13 23:19 ~向阳花~ 阅读(410) 评论(1) 推荐(0)