位置:首頁 > 軟件操作教程 > 數(shù)據(jù)分析 > MySQL > 問題詳情

MySQL——用Parameters聲明創(chuàng)建參數(shù)查詢

提問人:劉旭39發(fā)布時間:2020-10-10

Parameters聲明的語法:

PARAMETERS name datatype[,name datatype[, …]]

其中name 是參數(shù)的標(biāo)志符,可以通過標(biāo)志符引用參數(shù).

Datatype說明參數(shù)的數(shù)據(jù)類型.

使用時要把PARAMETERS 聲明置于任何其他語句之前.

例:PARAMETERS[Low price] Currency,[Beginning date]datatime

Select orderID ,OrderAmount

FROM orders

Where orderAMount>[low price]

AND orderDate>=[Beginning date]

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部