请教大家下列c#格式化语句 以及其中的sql查询语言分别是什么意思啊? 看不懂 谢谢!

string strsql = string.Format("select t.*,s.longitude as x,s.latitude as y,s.type from {0} t,{1} s where t.st_dt=to_date(✀{2}✀,✀YYYY-MM-DD HH24:MI:SS✀) and t.cityname=s.pname", envir_info,envir_station,dtime);
2026年09月19日 22:28
有1个网友回答
网友(1):

看见中括号“{0}” 、“{1}”了吧,从0开始,然后最后面填写的是对应的参数赋值到中括号的地方,如果有多个“{}”,那么后面也要有对应参数的个数