首页 > c# > 优化一句替换一段句子

优化一句替换一段句子

优化一句替换一段句子

public static string Getcc(int classid)
{
try
{
int count = GetCount(classid);---
if (count == 0) return "";

int current = new Random().Next(1, count);
string s="select top 1 aa from table where classid=" +classid +

" and classid not in (select top " + (current - 1) + " id from table where

classid=" + classid+ " order by id ) and del=0 order by id ");
}
catch (Exception ex)
{
..
}
}

语句替换优化

select top 1 aa from table where classid="+classid+" order by NEWID()

原创文章转载请注明出处:云飞扬IT的blog

本文链接: http://www.ajaxcn.net/archives/1697

分类: c# 标签:
一键分享到:新浪微博分享  分享到网易微博    转贴到开心网  推荐到豆瓣  分享到QQ空间    RSS订阅
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.

key office 2010

office 2010 key

corel dvd moviefactory 6

corel dvd moviefactory 6 downloads

serial corel draw 11

serial corel draw 11 serials

windows 7 key

windows 7 key

office 2010 professional key

office 2010 key

windows key

windows key

free winrar download for xp

download winrar for xp for free

winrar password cracker serial

wirar password cracker

cs5 serialz

cs5 serialz free

photoshop key

photoshop key

free corel photoshop download

free corel photoshop download keygen

photo shop key

photo shop key

download photo shop free

photo shop serial

serial winzip 11

serial winzip 11 key

adobe free

adobe free

windows 7 free

windows 7 crack

winrar 3 download

winrar 3 download freedownload

office 2010 free

office 2010 key

free corel downloads

free corel downloads cracked