Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
インデックスに + 以外の文字がない番号テーブルから選択したい。 例えば:
+991234567 は大丈夫です
98+4587889 は問題ありません
14asdasda54866666 は問題ありません
クエリをどのように記述すればよいですか?
正規表現を使用したクエリは次のとおりです
SELECT number FROM Table1 WHERE number NOT REGEXP '^\\+{0,1}(0|1|2|3|4|5|6|7|8|9)*$'
SQL フィドル