Commit c622de2c authored by wwka's avatar wwka

联表查询定义别名

parent 3631f299
......@@ -1589,7 +1589,7 @@ std::vector<Book_ManagerInfo> CBookDal::GetUserBookLocalManagerInfo(CString user
//sql.Format(_T("select book_id,IsMoved,lastpage,order_index,update_time,isHistory,active_name,owner from BookManager where user_id=%s and isMoved=1 order by order_index"),userId);
sql.Format(_T("select A.book_id,A.IsMoved,A.lastpage,A.order_index,A.update_time,A.isHistory,A.active_name,A.owner \
,B.id,B.bookId,B.bookName,B.catalogId,B.bookCoverPath,B.bookTextPath,B.bookType,B.bookState,B.recentNo,B.exist,B.coursecode,B.downloadurl,B.downloadsize,B.filesize,B.orderNo,B.courseCode,B.coverDigest,B.fileDigest,B.applicableTerm ,B.startPage ,B.updatetime,B.year,B.diandu_URL,B.exercise_URL,B.grade,B.securityKey,B.shortName,B.checkstatus,B.activtype,B.owner,B.author,B.fromuser \
from BookManager A LEFT JOIN BookInfo B ON A.book_id=B.bookId where user_id=%s and isMoved=1 order by A.order_index"),userId);
from BookManager A LEFT JOIN BookInfo B ON A.book_id=B.bookId where A.user_id=%s and A.isMoved=1 order by A.order_index"),userId);
}
pHelper->ExecuteQueryTable(sql, dt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment