怎么将sqlite数据库连接到php中,sqlite数据库是3版本,数据库后缀被加密,急求、、、
我试了不加密的数据可以读取publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(obj...
我试了 不加密的数据可以读取
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string MYSQLIP = "localhost";
string MYSQLDB = "crm";
string MYSQLUSER = "root";
string MYSQLPWD = "";
//读取商务通内数据
string connStr = "Data Source=" + "数据库位置+ ";Password=livereception;Read Only=True";
SQLiteConnection conn = new SQLiteConnection(connStr);
conn.Open();
SQLiteCommand myCommand = new SQLiteCommand("select a.pid,a.url,a.searchkey,a.vtime,b.endtime from track a,visitors b where a.pid = b.id and a.url like '%se=bkw%' limit 50", conn);
SQLiteDataReader da;
da = myCommand.ExecuteReader(); 展开
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string MYSQLIP = "localhost";
string MYSQLDB = "crm";
string MYSQLUSER = "root";
string MYSQLPWD = "";
//读取商务通内数据
string connStr = "Data Source=" + "数据库位置+ ";Password=livereception;Read Only=True";
SQLiteConnection conn = new SQLiteConnection(connStr);
conn.Open();
SQLiteCommand myCommand = new SQLiteCommand("select a.pid,a.url,a.searchkey,a.vtime,b.endtime from track a,visitors b where a.pid = b.id and a.url like '%se=bkw%' limit 50", conn);
SQLiteDataReader da;
da = myCommand.ExecuteReader(); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询