src: [Video 28 - User Parameters Part 2](https://thefrugalcomputerguy.com/grouppg.php?ser=15&grp=11)(https://youtu.be/lPZrFaVyvxc)
在查詢功能的準則中使用「:」+「變數名稱」,在 sql 下變成如下:
* 跳出視窗輸入資料
select * from “table_name” where “field_name1” = :變數
* 再加上其他條件
select * from “table_name” where “field_name2” like '%a%' and “field_name1” = :變數
* field_name1 查詢的前後加上連接符號,連接前後的萬用字元
select * from “table_name” where “field_name2” like '%a%' and “field_name1” like '%' || :變數 || '%'
可以利用此方式,再到表單中使用,可以使表單跳出查詢輸入畫面,請使用輸入資料。(可再加上更新按鍵重新查詢)
文章標籤
全站熱搜
留言列表