Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CDE ダッシュボード クエリにプロシージャ mysql を記述し、put パラメータを使用して、これは正しいですか?
if ${colum}=1 select ordernumber,productcode from orderfact else select ordernumber,productcode,priceeach,totalprice from orderfact
${colum} は私のパラメーターです
番号。CDA のクエリは、SQL であり、パラメータ化できる単なるクエリです。
代わりにこれを行うことができます:
select ordernumber, productcode, case when colum=1 then null else priceeach end
等..
やっていることはかなり奇妙なことです。ユースケースを説明できますか?