const是常量 个人感觉你这样写的结果貌似没多大用
你可以试试private const string sql_select2 = "select [year] as 年,[month] as 月,[money_plan] as 计划金额 from month_money where year='{0}'and month='{1}'";
用的时候string.format(sql_select2,b1,b2);
你既然用了常量 就是不能修改 还在后面加变量就没有意义了
你可以试试private const string sql_select2 = "select [year] as 年,[month] as 月,[money_plan] as 计划金额 from month_money where year='{0}'and month='{1}'";
用的时候string.format(sql_select2,b1,b2);
你既然用了常量 就是不能修改 还在后面加变量就没有意义了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货