1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WHERE句で正規表現を使う

Posted at

WHERE句で正規表現使えることを初めて知った!
これを知ってしまうと、もう普通のLIKE文を使うことはない気がする。


SELECT * FROM MASTER_TABLE
WHERE 
  REGEXP_LIKE(FIELD_NAME, '_[0-9]+')
ORDER BY SEQ

oracleの公式doc

MySQLの公式doc

Postgresqlの公式doc

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?