string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc"; sqlSel = sqlSel + "from image as img,album as alb where img.albumID=alb.albumID and img.albumID=" + Request["id"]; µ½µ×´íÔÚÄÇÀïÄØ£¿form Ç°ÃæÁô¸ö¿Õ¸ñ string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc"; sqlSel = sqlSel + "from image as img,album as alb where img.albumID=alb.albumID and img.albumID=" + Request["id"]; Request["id"]ÊÇʲô°¡ ÊÇRequest.QueryString["id"]Âð SQL code:
string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc "; sqlSel = sqlSel + " from image as img,album as alb where img.albumID=alb.albumID and img.albumID='" + Request["id"] + "'";
ͨ¹ýNAME×Ö¶ÎÌõ¼þ²éѯһ¸öÊý¾Ý±í£¬¼ÙÉèÎÒÓÐ100¸öÐÕÃû£¬ÓÐÒÔÏÂÁ½¸ö·½·¨£¬ ·½·¨1£º °Ñ100¸öName ×é³ÉÒ»¸öSQLÓï¾ä£¬±ÈÈç Select * from tmp_table where Name='ÕÅÈý' or Name ='ÀîËÄ' Or ...Or Name='µÚÒ»°Ù¸öÐÕÃû' ......