高人帮我看看这段代码什么意思

sunchaohehe sunchaohehe 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
String pmid="";


formParams = "mid=" + toURL(getParam( request, "mid")) + "&";

pmid = getParam( request, "mid");
if ( ! isNumber (pmid)) {
pmid = "";
}

if (pmid != null && ! pmid.equals("")) {

hasParam = true;
sWhere += "m.message_parent_id=" + pmid;
}

if (hasParam) { sWhere = " WHERE (" + sWhere + ")"; }
// Build ORDER statement
sOrder = " order by m.date_entered Desc";

// Build full SQL statement

sSQL = "select m.author as m_author, " +
"m.date_entered as m_date_entered, " +
"m.message as m_message, " +
"m.message_parent_id as m_message_parent_id, " +
"m.topic as m_topic " +
" from messages m ";

sSQL = sSQL + sWhere + sOrder;


帮我详细一点解释一下这段代码的意思,谢啦
...全文
评论 10
收藏 已收藏
分享
返回顶部
sunchaohehe
Web 开发 81,108 成员 341,721 内容