C.K. Studio
2015年8月11日 星期二
Postgresql 多關鍵字 like
SELECT name FROM 表單名稱 WHERE name LIKE 'B%' OR name LIKE 'D%'
WHERE name ~ '^(B|D).*'
ps.B 與 D 為關鍵字
網路來源:http://dba.stackexchange.com/questions/10694/pattern-matching-with-like-similar-to-or-regular-expressions-in-postgresql
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言