日期:2014-05-17 浏览次数:20741 次
/// <summary>
/// 返回要显示的一张数据表
/// </summary>
/// <param name="sql"></param>
/// <returns></returns>
public static DataTable tables(string sql)
{
string str = conicution;
OleDbConnection conn = new OleDbConnection(str);
conn.Open();
OleDbDataAdapter mydb = new OleDbDataAdapter(sql, conn);
DataTable dt = new DataTable();
mydb.Fill(dt);
conn.Close();
conn.Dispose();
return dt;
}
SELECT count(*) FROM s_keywords where 标题='B76056' and 是否启用='否'