select sum(outputqty)/sum(ondutyhours) from TBLSSARRANGE  where ORGID = {0} and  segcode = {1} and shiftcode = '{2}' and manufacturedate = {3} and sscode = {4} ",

解决方案 »

  1.   

    记得好像是表示C#里的传给SQL语句的参数
      

  2.   

    我知道是C#里的传给SQL语句的参数,但是{0}代表什么啊?
      

  3.   

    测试一下就知道了: static void Main(string[] args)
            {
                int x1 = 100, x2 = 200, x3 = 300;
                Console.WriteLine("a={0},b={1},c={2}",x1,x2,x3);
                Console.Read();
            }