iT邦幫忙

0

[SQL] 透過複數個條件抓資料庫的資料

各位大神們好,這邊想要請問一下SQL中的語法問題,以下是我的code:
https://ithelp.ithome.com.tw/upload/images/20210907/201414033tbCuCGPyh.png
在我輸入變數後出現了以下的error:
https://ithelp.ithome.com.tw/upload/images/20210907/20141403m521EodjsF.png
似乎是變數帶入的問題,想請問各位大神如何解決。

  • 操作環境為使用colaboratory import PyMySql對MariaDB進行操作
圖片跳過。
bill iT邦新手 5 級 ‧ 2021-09-09 10:24:38 檢舉
條件不管是不是數字都加一下冒號比較好
select * from table where arrayA = 'A';
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
allenlwh
iT邦高手 1 級 ‧ 2021-09-07 18:56:34

改為 Union all,試試看

0

我要發表回答

立即登入回答