detail.aspx.cs中的loadArticleDetail方法出错'System.Exception: Table 'askjane.aj_article' doesn't existSql:select id,article_title,article_explain,article_content from askjane.aj_article where id = 625; ---> MySql.Data.MySqlClient.MySqlException: Table 'askjane.aj_article' doesn't exist 在 MySql.Data.MySqlClient.MySqlStream.OpenPacket() 在 MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) 在 MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() 在 MySql.Data.MySqlClient.MySqlDataReader.NextResult() 在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) 在 MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) 在 MySqlDataBase.GetTableFromDB(String strConn, String strSql) --- 内部异常堆栈跟踪的结尾 --- 在 MySqlDataBase.GetTableFromDB(String strConn, String strSql) 在 MySqlDataBase.GetTableFromDB(String strSql) 在 Foster_detail.LoadArticleDetail(Int32 articleID)'
相关链接:
加载相关文章失败,Table 'askjane.aj_article_rel_article' doesn't existSql:select * from (select rel.*,a.title as title,c.cat_name as topictitle from askjane.aj_article_rel_article rel left join ecshop.mmbk_article a on rel.rel_article_id = a.article_id left join ecshop.mmbk_article_cat c on c.cat_id = a.cat_id where rel.relative_type = 0 and rel.article_id = 625 union all select rel.*,a.article_title as title, at.type_name as topictitle from askjane.aj_article_rel_article rel left join askjane.aj_article a on rel.rel_article_id = a.id left join askjane.aj_article_type at on a.type_id = at.type_id where rel.relative_type = 1 and rel.article_id = 625 ) as temp order by temp.order_no asc LIMIT 0,10
  • 复制链接
  • 添加到收藏夹
  • 站外转帖:
    • 分享到QQ空间
    • 转帖到人人网
    • 转帖到开心网
    • 转帖到豆瓣
    • 分享到到淘江湖
我要提问
  
输入认证码


查看会员提问

‹ 返回

您可能需要的产品 全部产品