use cms
select newsid from news
select top 4left(newstitle,4) from news
string strSqlnow = "select top 4left(newstitle,20) newstitle,newsid from news order by newstime";
本文介绍了一种使用SQL进行数据查询的方法,包括如何选取新闻ID及标题,并通过限定返回记录数和字段长度来优化查询效率。
use cms
select newsid from news
select top 4left(newstitle,4) from news
string strSqlnow = "select top 4left(newstitle,20) newstitle,newsid from news order by newstime";
4771

被折叠的 条评论
为什么被折叠?