Êý¾Ý¿âµÄ²Ù×÷¶¼ÊÇʹÓõIJÎÊý»¯À´Ö´ÐУ¬ÏÖÔÚÐèÒª¼Ç¼ÈÕÖ¾£¬ÔòÐèÒª¼Ç¼ÏÂÀ´ÍêÕûÖ´ÐеÄsqlÓï¾ä¡£ÕâÑù²ÎÊý»¯µÄ¾ÍµÃ²»µ½ÍêÕûµÄsqlÓï¾ä¶¼ÊDzÎÊý£¬Ã»ÓÐÖµ£¬ÎÒ²ÉÓÃ×Ô¼ºÆ´½ÓµÄ·½Ê½£¬µ«Êǹ¤³ÌÁ¿Ì«´óÁË£¬ÎÒ¸öÈ˾õµÃ¼´Ê¹ÊDzÎÊý»¯µÄÖ´Ðз½Ê½£¬µ½µ×À´Ëµ»¹ÊÇÖ´ÐеÄsql£¬adoÖÐÓ¦¸Ã¿ÉÒÔ»ñÈ¡µÄ£¬ÇëÖ¸½Ì£¿
×Ô¼º¶¥ÉÏÀ´¡£
²ÎÊý»¯µÄsqlÓï¾ä±È½ ......
Õâ¸öSqlÓдíÎóô? Ϊʲôȡ²»µ½Êý¾ÝÄØ¡£
@strtime varchar(30),
@end varchar(30),
@cname int,
@gname varchar(50)
AS
if @gname='ËùÓÐÒµÎñ'
begin
select count(*) as s_count,s_gname=@gname from sp_operation where s_client=@cname and s_succdate>@strtime and s_succdate<@end
end
......
×Ö¶Î....times iss
2010-03-09 ÊÇ
2010-03-09 ÊÇ
2010-03-09 ·ñ
2010-03-09 ·ñ
2010-03-10 ÊÇ
2010-03-09 ·ñ
2010-03-09 ·ñ
²éѯ»ØÀ´µÄ½á¹û
×Ö¶Î....times ÊÇ ......
ÒÑÖªÒ»¸ö±í£¬½á¹¹Èç
create table A
(
user_id INT(10) PRIMARY KEY, #Óû§id
money INT(10) NOT NULL #½»Ò×½ð¶î
);
ÏÖÔÚÎÒÁһ¸ö±í
create table B
(
user_id INT(10) PRIMARY KEY,
moneyrank VARCHAR(15) NOT NULL, #½ð¶î¶Î£¬ÀýÈç0-20Ôª£¬20-50ÔªµÈµÈ ......
SQL code:
IF '?' IN(select rtrim(databasename) as name from stibtest.dbo.ls_yddata where is_wlz='ÊÇ' and databasename<=''stib232'' and databasename<>''stib144'')
Õâ¸ö £¿ ±íʾʲô£¬ÊÇÊý¾Ý¿âÃûÂð£¿
²»Ã÷°×¡£SF¡£¡£¡£²»Ã÷°×£¿ÊǸÉʲô
?ÊÇռλ·û£¬ÔÙ³ÌÐòÀïÐèÒª½øÐÐÉèÖõIJÎÊý
ÄãµÄ²éѯÊÇÓà ......
public partial class MasterPage : System.Web.UI.MasterPage
{
string sqlConnString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
protected void Page_Load(object sender, EventArgs e)
{
if (Session ......