[請益] 請教php如何有件篩選mysql資料表?
假設資料庫example裡有3個room資料表,另有兩個資料表
分別是100room 200room 300room 跟user member
在mysql可以用show tables where substr(Tables_in_example,'4')='room';
來篩選第4個字開始是包含room的資料表
100room
200room
300room
但在php上該用什麼語法來有條件的篩選包含room的資料表呢?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.229.12.115
推
03/08 03:56, , 1F
03/08 03:56, 1F
→
03/08 03:57, , 2F
03/08 03:57, 2F
→
03/08 03:57, , 3F
03/08 03:57, 3F
→
03/08 03:58, , 4F
03/08 03:58, 4F
→
03/08 03:59, , 5F
03/08 03:59, 5F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章