发新话题
打印

如何在语句的查询列中 使用url传来的 参数

如何在语句的查询列中 使用url传来的 参数

如 :select
   (case when 参数 ="1"  then dealer_name_cn  else dealer_name_en ) as dealer_name
from
cc_dealer
求解 ! 急! 谢谢!!!

TOP

url上,传入年份参数,比如myYear:
..... &myYear=2011&...

在sql中,使用:
select * from xxxx where year = ${myYear}

TOP

请问myYear这个参数需要在设计器的参数定义中预先定义吗?

TOP

发新话题